Hi
I've been using BASS in my app for years very successfully, and I'm sure that the problem I have is down to my lack of understanding!
I'm playing back audio using a channel inside a mixer. The channel is using the flag BASS_STREAM_DECODE.
I've had a long standing non-critical bug in the app - when a user is playing audio, pauses, seeks/scrubs to a new position (say the start) then restarts, it plays a short burst from where they were then starts playing at the new position. I assume this is buffered decoded audio.
I've tried using the following code to clear the buffered audio (which I found after trawling through the forums) before seeking
QWORD currentPos = BASS_ChannelGetPosition(self.channel, BASS_POS_BYTE);
BASS_ChannelSetPosition(self.channel, currentPos, BASS_POS_BYTE);
I assume that this code seeks the channel to the very end of it's data, effectively flushing it, but this has no effect.
I also tried flushing the mixer with
BASS_ChannelSetPosition(_mixerStream, 0, BASS_POS_BYTE | BASS_POS_MIXER_RESET);
Still no effect (although this makes seeking very responsive).
I assume that as the channel is a decode only channel that the buffer is in the mixer - but it could also be a buffer of decoded data in the channel itself?
Any help or pointers would be much appreciated.
Thanks
Rich