| GNOME Video Arcade Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
struct GvaMusicButton; GtkWidget * gva_music_button_new (void); void gva_music_button_play (GvaMusicButton *music_button); void gva_music_button_pause (GvaMusicButton *music_button); const gchar * gva_music_button_get_game (GvaMusicButton *music_button); void gva_music_button_set_game (GvaMusicButton *music_button,const gchar *game); const gchar * gva_music_button_get_status (GvaMusicButton *music_button);
A GvaMusicButton toggles between playing and pausing in-game music clips streamed from http://www.arcade-history.com/.
This requires arcade history information from a 'history.dat' file.
struct GvaMusicButton {
GtkButton parent;
GvaMusicButtonPrivate *priv;
};
Contains only private data that should be read and manipulated using the functions below.
GtkWidget * gva_music_button_new (void);
Creates a new GvaMusicButton.
Returns : |
a new GvaMusicButton |
void gva_music_button_play (GvaMusicButton *music_button);
Plays a music clip from the game specified by the GvaMusicButton:game property. The clip will repeat indefinitely until paused or a different game is chosen.
|
a GvaMusicButton |
void gva_music_button_pause (GvaMusicButton *music_button);
Pauses a music clip from the game specified by the GvaMusicButton:game property.
|
a GvaMusicButton |
const gchar * gva_music_button_get_game (GvaMusicButton *music_button);
Returns the name of the game for which to play a music clip.
|
a GvaMusicButton |
Returns : |
the game for which to play a music clip |
void gva_music_button_set_game (GvaMusicButton *music_button,const gchar *game);
Sets the name of the game for which to play a music clip. Use
gva_music_button_play() to play the clip.
|
a GvaMusicButton |
|
the name of a game |
const gchar * gva_music_button_get_status (GvaMusicButton *music_button);
Returns a status message about the music clip, such as buffering progress or whether a music clip is available for the selected game.
|
a GvaMusicButton |
Returns : |
a status message about the music clip |