xine_dispose(stream);
}
-void XineStream::select_audio_channel(int i)
-{
- if(i>=0 && static_cast<unsigned>(i)>=audio_channels.size())
- throw out_of_range("XineStream::set_audio_channel");
-
- if(i<0)
- i = OFF;
- xine_set_param(stream, XINE_PARAM_AUDIO_CHANNEL_LOGICAL, (i==OFF ? -2 : i));
-}
-
-void XineStream::select_spu_channel(int i)
-{
- if(i>=0 && static_cast<unsigned>(i)>=spu_channels.size())
- throw out_of_range("XineStream::set_spu_channel");
-
- if(i<0)
- i = OFF;
- xine_set_param(stream, XINE_PARAM_SPU_CHANNEL, (i==OFF ? -2 : i));
-}
-
void XineStream::play()
{
if(state==STOPPED)
signal_state_changed.emit(state);
}
+void XineStream::select_audio_channel(int i)
+{
+ if(i>=0 && static_cast<unsigned>(i)>=audio_channels.size())
+ throw out_of_range("XineStream::set_audio_channel");
+
+ if(i<0)
+ i = OFF;
+ xine_set_param(stream, XINE_PARAM_AUDIO_CHANNEL_LOGICAL, (i==OFF ? -2 : i));
+}
+
+void XineStream::select_spu_channel(int i)
+{
+ if(i>=0 && static_cast<unsigned>(i)>=spu_channels.size())
+ throw out_of_range("XineStream::set_spu_channel");
+
+ if(i<0)
+ i = OFF;
+ xine_set_param(stream, XINE_PARAM_SPU_CHANNEL, (i==OFF ? -2 : i));
+}
+
void XineStream::tick()
{
while(xine_event_t *event = xine_event_get(queue))