0
0

how to separate the spectrum array in two buffers
LeftBuffer[1024] and RightBuffer[1024]
“Left Speaker & Right Speaker”

this is my code
[code:2190grml]

define SPECTRUMSIZE 2048

int i;

FMOD_Channel_GetSpectrum(channel, spectrum, SPECTRUMSIZE, 0, FMOD_DSP_FFT_WINDOW_TRIANGLE);

for (i=0;i<SPECTRUMSIZE;i++)
{
LeftBuffer[] = spectrum[i];
RightBuffer[] = spectrum[i+1];
if(i<SPECTRUMSIZE)i++;
}
[/code:2190grml]
is it good?

  • You must to post comments
0
0

Thanks i will use FmodEx instead,
but how to separate the arrays ?

Is this code it good?
[code:38ussjvm]
float LBuffer[1024];
float RBuffer[1024];

FMOD_Channel_GetSpectrum(channel, &LBuffer, SPECTRUMSIZE, 0, FMOD_DSP_FFT_WINDOW_TRIANGLE);
FMOD_Channel_GetSpectrum(channel, &RBuffer, SPECTRUMSIZE, 1, FMOD_DSP_FFT_WINDOW_TRIANGLE);
[/code:38ussjvm]

Please Correct it if it’s wrong.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.