24 May '13 - 13:34 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: How to create a stereo stream from two mono streams?  (Read 615 times)
nadia
Posts: 272


« on: 2 Mar '11 - 23:40 »
Reply with quoteQuote

Hello  Grin

supposing that I have two mono streams A and B which I need to create a stereo stream C, which is the best way to put stream A inside the left channel of stream C and to put stream B inside the right channel of stream C?

I guess that I could use BassMix for this but I have not found a way to keep the two mono streams separated.

Thanks in advance and Kind regards  Grin

Nadia

Logged
Ian @ un4seen
Administrator
Posts: 15270


« Reply #1 on: 3 Mar '11 - 15:52 »
Reply with quoteQuote

I think using BASSmix will be the easiest way to do that. To keep the streams separate (eg. one on the left and the other on the right), you can use the SPEAKER flags...

BASS_Mixer_StreamAddChannel(mixer, streamA, BASS_SPEAKER_FRONTLEFT); // put the 1st source on the left
BASS_Mixer_StreamAddChannel(mixer, streamB, BASS_SPEAKER_FRONTRIGHT); // put the 2nd source on the right
Logged
smodilo
Posts: 47


« Reply #2 on: 3 Mar '11 - 22:28 »
Reply with quoteQuote

Do you really need to merge them into one stream, or do you just want to send one channel to the left output and the other to the right output?

Because in the latter case you just need to set the speaker flags.

 
Logged
nadia
Posts: 272


« Reply #3 on: 3 Mar '11 - 23:10 »
Reply with quoteQuote

Do you really need to merge them into one stream, or do you just want to send one channel to the left output and the other to the right output?

Because in the latter case you just need to set the speaker flags.


Hello  Grin

I need to merge them to create a stereo output file and, obviously, I was not aware of the fact that BassMix could manage speakers in the way Ian explained: awesome....

Kind Regards  Grin

Nadia

Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines