WASAPI + Mixer + FFT

Started by elan, 18 Feb '25 - 03:55

elan

I think I must be missing something obvious here.

Before WASAPI, the mixer stream was created as non-decode, and we fetched the FFT data with BASS_ChannelGetData on the mixer channel; all was well.

With WASAPI, the mixer is now BASS_STREAM_DECODE; if we read data out of the mixer channel with BASS_ChannelGetData it "steals" data from it. I read about BASS_MIXER_CHAN_BUFFER but that only seems to apply to *source* channels of the mixer, and not the mixer itself.

Any tips?

[I mean, could add another mixer to the setup and then monitor the first mixer, but that seems wasteful?]

Ian @ un4seen

You can use BASS_WASAPI_GetData instead of BASS_ChannelGetData in that case, after including the BASS_WASAPI_BUFFER flag in your BASS_WASAPI_Init call. BASS_WASAPI_GetData supports the same options as BASS_ChannelGetData.

elan

I knew I was missing something, thanks for the quick reply!

Quick Reply

Name:
Email:
Shortcuts: ALT+S post or ALT+P preview