Hi Ian,
I would like to provide the decoded file to you. Unfortunately, I have little experience of audio processing. I follow the code on document of DSPPROC function. And so far I got something like this and I get stuck
private async Task NewMethod()
{
var file = await SelectPlaybackFile();
await Task.Run(() =>
{
_handle = Bass.BASS_StreamCreateFile(file.Path, 0,0,BASSFlag.BASS_STREAM_AUTOFREE | BASSFlag.BASS_SAMPLE_FLOAT);
var _myDSPProc = new DSPPROC(Dsp1);
int dspHandle = Bass.BASS_ChannelSetDSP(_handle, _myDSPProc, IntPtr.Zero, 0);
Bass.BASS_ChannelPlay(_handle, false);
});
}
unsafe void Dsp1(int handle, int channel, IntPtr buffer, int length, IntPtr user)
{
for (var s = (short*)buffer; length != 0; length -= 4, s += 2)
{
//Don't know what to write
}
}
It would be appreciated for providing more detail extract out the decoded data