From: <jo...@ci...> - 2005-11-08 15:37:49
|
Hi Michael, Thanks for your quick answer! > Hi Jorge, > > > This is my first mailing list email. > > In that case: Welcome to the xine team! ;) > > > I'm developing a litlle custom player and I was wondering if is it > > possible to have two streams, the first one with video and sound, > > and a second stream with audio only. > > That's certainly possible. > > > I was thinking to use a channel for every sound using the xine api: > > > > xine_set_param( first_stream, XINE_PARAM_AUDIO_CHANNEL_LOGICAL, 0 ); > > xine_set_param( second_stream, XINE_PARAM_AUDIO_CHANNEL_LOGICAL, 1 ); > > > > The final result would be the two sound mixed. > > This is where things get more difficult. The function calls above are > meant for something else: They switch between multiple audio channels > of the same stream (think about DVDs with multiple languages), not > between the audio of different streams. > > What's needed here is a post plugin which mixes two audio streams > into one, but this has not been written yet. If your audio subsystem > (alsa/oss/whatever) can handle more than one audio feed, you can work > around this by instantiating two audio outputs, one for each stream. > > > And, is there any way to have independent channel volume control ? > > The two-output-solution will give you independent volume control. > I think it will more difficult that I supposed :-) First of all, my project is being developed using the pyxine-0.1alpha2 because want run it under python. This library is unmaintained (i think!) and it's fixed under the xine version 1-beta4 (v1.1 2003/02/08). Now I have a unique volume control, given by the xine_set_param( stream, XINE_PARAM_AUDIO_VOLUME, volume ); but I didn't know the post-plugin concept. The post-plugin API is available from this pyxine version. The xine library that I'm using is the 1.144 (2005/07/17) I will study your solution. Thanks you, Jorge |