# Get spectrum data with volume 0?!

**URL:** https://qa.fmod.com/t/get-spectrum-data-with-volume-0/14786
**Category:** Unity
**Created:** [June 18, 2019, 10:05am UTC](https://qa.fmod.com/t/get-spectrum-data-with-volume-0/14786 "2019-06-18T10:05:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![amnesiaaa](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@amnesiaaa](https://qa.fmod.com/u/amnesiaaa)
#### Post date: [June 18, 2019, 10:05am UTC](https://qa.fmod.com/t/get-spectrum-data-with-volume-0/14786/1 "2019-06-18T10:05:52Z")

</div>

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. 🙂

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [June 23, 2019, 11:58pm UTC](https://qa.fmod.com/t/get-spectrum-data-with-volume-0/14786/2 "2019-06-23T23:58:54Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![amnesiaaa](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@amnesiaaa](https://qa.fmod.com/u/amnesiaaa)
#### Post date: [June 24, 2019, 11:02am UTC](https://qa.fmod.com/t/get-spectrum-data-with-volume-0/14786/3 "2019-06-24T11:02:02Z")

</div>

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);`

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [June 24, 2019, 11:42pm UTC](https://qa.fmod.com/t/get-spectrum-data-with-volume-0/14786/4 "2019-06-24T23:42:13Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![amnesiaaa](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@amnesiaaa](https://qa.fmod.com/u/amnesiaaa)
#### Post date: [June 25, 2019, 6:46am UTC](https://qa.fmod.com/t/get-spectrum-data-with-volume-0/14786/5 "2019-06-25T06:46:32Z")

</div>

Thanks cameron, this works 👍  
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)`
