0
0

The code below is giving a error saying that invalid parameters passed to the function.i am trying to get the array of singles through spectrumarray

actual function description is

Public Declare Function FMOD_System_GetSpectrum Lib “z:/fmodex.dll” (ByVal system As Long, ByRef spectrumarray As Single, ByVal numvalues As Long, ByVal channeloffset As Long, ByRef windowtype As FMOD_DSP_FFT_WINDOW) As FMOD_RESULT

Dim result As FMOD_RESULT
Dim spectrumarray(0 To 511) As Single
Dim s As Single
Dim numvalues As Long
Dim channeloffset As Long
Dim windowtype As FMOD_DSP_FFT_WINDOW
channeloffset = channel
numvalues = 512

oscillioscope.ScaleHeight = 1
oscillioscope.ScaleWidth = 512
oscllio.Enabled = True
'MsgBox windowtype
result = FMOD_System_GetSpectrum(system, spectrumarray, numvalues, channeloffset, windowtype)
ERRCHECK (result)

as the funtion says i tried passing the parameters like this also but same error is coming .i don’t know why.

result = FMOD_System_GetSpectrum(system, spectrumarray(0), numvalues, channeloffset, windowtype)

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.