Author Topic: Most efficient FFT  (Read 183 times)

cablehead

  • Posts: 314
Most efficient FFT
« on: 13 Mar '17 - 13:43 »
I think  8) I remember reading that starting a record stream with BASSFlag.BASS_STREAM_DECODE if you only need to call ChannelGetData for fft data is the way to go. Is this still true?

Ian @ un4seen

  • Administrator
  • Posts: 20336
Re: Most efficient FFT
« Reply #1 on: 13 Mar '17 - 16:23 »
It isn't actually possible to use the BASS_STREAM_DECODE flag in a BASS_RecordStart call, but you can achieve the same result by not using a RECORDPROC callback function, ie. you will then need to call BASS_ChannelGetData to receive the captured data. Regarding efficiency, doing it that way will mean each sample is processed exactly once. So if that's what you want, then it will be the most efficient way to do it :)