Hi.
I'm trying to visualize audio data from a live source with BASS .NET.
I wanted to modify "livefx" demo, it's playing fine right now.
But I can't figure out how to get FFT data from BASS_ChannelGetData.
With ASIO I don't really have any streams. Audio data seems to be magically coming and going somewhere else.
This is the delegate called by ASIO.
private static int AsioCallback(bool input, int channel, IntPtr buffer, int length, IntPtr user)
{
if (input) {
Marshal.Copy(buffer, data, 0, length/4);
return 0;
} else {
Marshal.Copy(data, 0, buffer, length/4);
Bass.BASS_ChannelGetData(channel, buffer, length);
return length;
}
}
I even have all the data in the buffer. Where do I get a channel to put it to? o.O
Can anyone point me the way how to get FFT data here?