From: Michael R. <mr...@us...> - 2004-12-01 11:22:06
|
Hi, > For my xine-frontend, I want to allow "crossfading" of two tracks, this > requires that I use the same instance of xine_t but with two xine_stream_t > instances, one for each MRL. > > Is this possible? I tried it and the second track would only play once the > first had finished. Although I can't recall now if when the second track > started coming out the speakers whether or not it was at the beginning. So > perhaps it was just that no buffers were reaching the audio-sink until the > first track had finished. In theory, this should work, but you cannot connect both streams to the same output ports unless you ensure that only one will play at a time. Otherwise, the outputs of both streams will intertwine or otherwise confuse the output layer. Whenever you want to attach two streams to the same output, you have to put a post plugin in between that implements your switching/mixing/whatever policy. In your case, you could create a crossfade post plugin (which is yet to be written) that allows you to trigger the crossfade from your frontend. Michael -- Those of you who think you know everything are very annoying to those of us who do. |