Skip to content

Commit

Permalink
fetch the volume level
Browse files Browse the repository at this point in the history
  • Loading branch information
mackstann committed Dec 4, 2008
1 parent 8b9c3e9 commit 1731f0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion corn/music.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static gint stream_time;

gboolean music_gapless = FALSE;
gboolean music_playing = FALSE;
gint music_volume = 100; // XXX
gint music_volume;

void music_events(void *data, const xine_event_t *e)
{
Expand Down Expand Up @@ -106,6 +106,8 @@ void music_init()
#if defined(XINE_PARAM_GAPLESS_SWITCH) && defined(XINE_PARAM_EARLY_FINISHED_EVENT)
music_gapless = !!xine_check_version(1, 1, 1);
#endif

music_volume = xine_get_param(stream, XINE_PARAM_AUDIO_VOLUME);
}


Expand Down

0 comments on commit 1731f0e

Please sign in to comment.