Hy,
I Have a litle problem when Y user BassMixer with Bass Init(0)
int AUDIO_SOUDCARD = 0
int AUDIO_SAMPLERATE = 44100
// BASS INIT
Bass.BASS_Init(AUDIO_SOUNDCARD, AUDIO_SAMPLERATE, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero);
// MIXER INIT
if (AUDIO_CARDNUMBER != 0)
_mixerStream = BassMix.BASS_Mixer_StreamCreate(AUDIO_SAMPLERATE, AUDIO_CHANNEL, BASSFlag.BASS_STREAM_PRESCAN);
else
_mixerStream = BassMix.BASS_Mixer_StreamCreate(AUDIO_SAMPLERATE, AUDIO_CHANNEL, BASSFlag.BASS_STREAM_DECODE);
// STREAM PLAY
_Stream = Bass.BASS_StreamCreateURL(streamURL, 0, BASSFlag.BASS_STREAM_DECODE, null, IntPtr.Zero);
BassMix.BASS_Mixer_StreamAddChannel(_mixerStream, _Stream, 0);
Bass.BASS_ChannelPlay(_Stream, false);
lame = new EncoderLAME(_mixerStream);
So, with PreSeacn my mixer don't stop when my Stream is down, but it's not possible to user STREAM_PRESCAN with BASS_INIT(0, ....)
and LAME don't encode
I think think, the only solution for use STREAM_DECODE, it play in a loop a file with no sond in the mixer
Do you know if the are an other solution so create a non strop mixer this no sound card -BASS_INIT(0,...)