hi
i am playing an Ogg file and usign BASS_StreamGetFilePosition to get the current file position.
BASS_StreamGetFilePosition returns correct if i play the file to the end (it stops by it self)
BASS_StreamGetFilePosition returns 0 if i stop or pause the playback in the middle.
BASS_StreamGetFilePosition also returns 0 if i set a position in the middle via BASS_ChannelSetPosition.
It is very important for me to be able to get the current file position after setting a channel position or after stopping playback.
I'v tried to force it to update the file position by:
Bass.BASS_ChannelSetPosition(m_DecodingStream, pos, BASSMode.BASS_POS_BYTES | BASSMode.BASS_POS_DECODETO);
and also tried to read decoded data to trigger a change in current file position:
Bass.BASS_ChannelGetData(m_DecodingStream, dummy, (int)toRead);
nothing i can think of seems to work
I would be very grateful if somone could help me with this.
the streams or channels im using for playback are:
m_DecodingStream = Bass.BASS_StreamCreateFile(AudioFile, 0, 0, BASSFlag.BASS_STREAM_DECODE | BASSFlag.BASS_SAMPLE_FLOAT | BASSFlag.BASS_STREAM_PRESCAN);
m_ReverseDecodingStream = BassFx.BASS_FX_ReverseCreate(m_DecodingStream, 2.0f, BASSFlag.BASS_STREAM_DECODE | BASSFlag.BASS_STREAM_PRESCAN);
m_Stream = BassFx.BASS_FX_TempoCreate(m_ReverseDecodingStream, BASSFlag.BASS_FX_FREESOURCE);