Hi,
got a problem with playback of streams with different sample rates.
Problem is, that only a file with the same Sample Rate and Channels as the first one played after init, plays ok. All the others in the middle play too fast.
I have a Device with 8 Channels.
playback is from a Mixer like this:
_mixer = BassMix.BASS_Mixer_StreamCreate(stream.ChannelInfo.freq, stream.ChannelInfo.chans, BASSFlag.BASS_MIXER_NONSTOP | BASSFlag.BASS_SAMPLE_FLOAT | BASSFlag.BASS_STREAM_DECODE | BASSFlag.BASS_MIXER_NORAMPIN);
And i use either the Bass.Net Asio Handler:
_asioHandler = new BassAsioHandler(_asioDevice, 0, _mixer);
or also tried without the handler, by enabling the first channel and joining the other channels.
Both methods show the same behaviour.
Sequence is like this:
1. Create a stream for a file
2. Check, if the new stream has the same amount of channels and same Sample rate as the already existing Mixer
3. If not, Create a new Mixer with the specs for the new stream and setup the ASIO
using that as you can see from the output of my test program, which is attached, a playback of the 66 channel Flac file on 96k was started. it played ok.
All the other files in between played too fast.
The last file in the list was again a 6 channel flac file with 96k, as the first one. And this played ok again.
Any clue, what i'm doing wrong?
thanks,
Helmut