Hi, I am playing a stream and need to know when it ends. Is there a way to register a callback for this?
Here is the code to start the audio.
Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_16BITS, IntPtr.Zero);
int _bassStream = Bass.BASS_StreamCreatePush(44100, 1, BASSFlag.BASS_SAMPLE_FLOAT, IntPtr.Zero);
Bass.BASS_StreamPutData(_bassStream, buffer, buffer.Length * 4);
Bass.BASS_ChannelPlay(_bassStream, false);
Thank you.