Author Topic: BASS_WASAPI_GetData in delphi  (Read 88 times)

SotirisPapad

  • Posts: 9
BASS_WASAPI_GetData in delphi
« on: 12 Apr '17 - 22:08 »
I try to get data with
BASS_WASAPI_GetData (@FFTFata, BASS_DATA_FFT512).
I use the flag BASS_WASAPI_BUFFER 
Are very usefull for me to give me 2 lines of code in delphi.

Type TFFTData  = array [0..512] of Single;
Can i use FFTFata : TFFTData; 
with BASS_WASAPI_GetData(@FFTFata, BASS_DATA_FFT512) ?
like  BASS_ChannelGetData(strs[CurChannel], @FFTFata, BASS_DATA_FFT512); Working

Ian @ un4seen

  • Administrator
  • Posts: 19894
Re: BASS_WASAPI_GetData in delphi
« Reply #1 on: 13 Apr '17 - 15:30 »
I'm not a Delphi user myself, but I think you would do something like this:

Code: [Select]
fftdata : array[0..255] of Single;

BASS_WASAPI_GetData(@fftdata, BASS_DATA_FFT512);

Make sure you also include the BASS_WASAPI_BUFFER flag in your BASS_WASAPI_Init call.

SotirisPapad

  • Posts: 9
Re: BASS_WASAPI_GetData in delphi
« Reply #2 on: 14 Apr '17 - 20:46 »
Can i use TFFTData ? because my spectrum function gets TFFTData ?