Get spectrum data with volume 0?!

Hey, I need the spectrum data but the user should not hear the music. how can i implement this? i have set the volume by 0.001f but i hear it a little bit. :slight_smile:

As long as you are adding the FFT DSP before the fader, you can set the volume to zero and still get valid data from the getSpectrum call.

1 Like

Hey, thanks for your answer!
I get all time the same value if i get the spectrum data and the volume is 0.
i have do this:

lowLevelSystem.createDSPByType(DSP_TYPE.FFT, out fft); fft.setParameterInt((int)DSP_FFT.WINDOWTYPE, (int)DSP_FFT_WINDOW.BLACKMANHARRIS); fft.setParameterInt((int)DSP_FFT.WINDOWSIZE, FftWindowSize); channelGroup.addDSP(CHANNELCONTROL_DSP_INDEX.TAIL, fft);

Apologies, by setting the volume to zero it is likely that the Event will then go virtual (from Vol0Virtual). To avoid that particular virtualization you can set the Event’s priority to highest.

1 Like

Thanks cameron, this works :+1:
if someone have the same problem, i have done this now:

channelGroup.addDSP(CHANNELCONTROL_DSP_INDEX.TAIL, fft);
eventEmitter.EventInstance.setProperty(EVENT_PROPERTY.CHANNELPRIORITY, 0)