Sound Card selecting...

Started by morfeus,

morfeus

I would like to know if there is a way to change Sound Card after Bass_init is called? I would like to have to players in the same project and be able to make first player to play on one sound card and second one on another, and also be able to change it "with one click"... Is that possible? THX!

Ian @ un4seen

You can change soundcard, by calling BASS_Free and then BASS_Init again, but you'll have to recreate any channels that you had previously created.

For example, you could get the current position/attributes of each channel before calling BASS_Free, and then recreate the channels and re-set the position/attributes after calling BASS_Init. If you had any DSP/FX set on the channels, you'll have to re-set those too.

morfeus

That's OK! But how to play on two different Sound Cards at same time? Rename bass.dll to bass1.dll and copy all api declaration with bass1.dll? There is no other way?!

Ian @ un4seen

If you're using C/C++, see the MULTI.C example. Otherwise, you'll probably find some help/answers using the forum's search option.