Mercurial > audlegacy
diff src/audacious/input.c @ 2436:f346d30bf5ab trunk
[svn] Change the input plugin API to use a struct for the currently-playing file.
| author | iabervon |
|---|---|
| date | Sun, 28 Jan 2007 17:02:15 -0800 |
| parents | 4e2fc64d95ef |
| children | 62d8f9c05832 |
line wrap: on
line diff
--- a/src/audacious/input.c Sun Jan 28 12:15:08 2007 -0800 +++ b/src/audacious/input.c Sun Jan 28 17:02:15 2007 -0800 @@ -73,16 +73,16 @@ gchar *input_info_text = NULL; -InputPlugin * -get_current_input_plugin(void) +InputPlayback * +get_current_input_playback(void) { - return ip_data.current_input_plugin; + return ip_data.current_input_playback; } void -set_current_input_plugin(InputPlugin * ip) +set_current_input_playback(InputPlayback * ip) { - ip_data.current_input_plugin = ip; + ip_data.current_input_playback = ip; } GList * @@ -511,11 +511,11 @@ if (!ip_data.playing) return; - if (!get_current_input_plugin()) + if (!get_current_input_playback()) return; - if (get_current_input_plugin()->set_eq) - get_current_input_plugin()->set_eq(on, preamp, bands); + if (get_current_input_playback()->plugin->set_eq) + get_current_input_playback()->plugin->set_eq(on, preamp, bands); } void @@ -736,9 +736,9 @@ *l = -1; *r = -1; if (playback_get_playing()) { - if (get_current_input_plugin() && - get_current_input_plugin()->get_volume) { - get_current_input_plugin()->get_volume(l, r); + if (get_current_input_playback() && + get_current_input_playback()->plugin->get_volume) { + get_current_input_playback()->plugin->get_volume(l, r); return; } } @@ -749,9 +749,9 @@ input_set_volume(gint l, gint r) { if (playback_get_playing()) { - if (get_current_input_plugin() && - get_current_input_plugin()->set_volume) { - get_current_input_plugin()->set_volume(l, r); + if (get_current_input_playback() && + get_current_input_playback()->plugin->set_volume) { + get_current_input_playback()->plugin->set_volume(l, r); return; } } @@ -814,7 +814,7 @@ if (!playback_get_playing()) return; - if (!get_current_input_plugin()) + if (!get_current_input_playback()) return; ip_data.buffering = status;
