# Get full spectrum of a sound in Unity

**URL:** <https://qa.fmod.com/t/get-full-spectrum-of-a-sound-in-unity/11733>\
**Category:** Unity\
**Created:** [November 27, 2014, 7:13pm UTC](https://qa.fmod.com/t/get-full-spectrum-of-a-sound-in-unity/11733 "2014-11-27T19:13:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeromKid](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@JeromKid](https://qa.fmod.com/u/JeromKid)\
**Post date:** [November 27, 2014, 7:13pm UTC](https://qa.fmod.com/t/get-full-spectrum-of-a-sound-in-unity/11733/1 "2014-11-27T19:13:08Z")

</div>

Hello! What I need to do is to get a full spectrum of a whole sound I created (with _system.createSound()_ function).  
   
I tried to adapt code from the answer given [here][1], but I couldn’t find any Unity’s alternative for **FMOD\_DSP\_FFT\_SPECTRUMDATA** , but also Unity’s **getParameterData()** function has completely different set of parameters to pass into (index, data and length).   
  
  
Here’s a snippet of code I have by now (the last line is commented out, because it obviously is wrong):

```
FMOD.DSP_PARAMETER_FFT fft;
FMOD.DSP fftdsp;
result = system.createDSPByType (DSP_TYPE.FFT, out fftdsp);
result = channel.addDSP (0, fftdsp);
//result = fftdsp.getParameterData (0, out data, out length);

```

Am I missing something? Thanks in advance.  
  
 P.S. Sorry for posting so many questions lately, just don’t really have time or any advanced knowledge whatsoever to figure this all out by myself.  
[1]: [http://52.88.2.202/questions/question/problem-getting-spectrum-in-newer-fmod-versions](http://52.88.2.202/questions/question/problem-getting-spectrum-in-newer-fmod-versions)

---

<div class="post-metadata">

**Author:** ![nick1](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nick1](https://qa.fmod.com/u/nick1)\
**Post date:** [December 1, 2014, 9:48pm UTC](https://qa.fmod.com/t/get-full-spectrum-of-a-sound-in-unity/11733/2 "2014-12-01T21:48:08Z")

</div>

Use this answer [http://52.88.2.202/questions/question/dsp-getparameterdata-silent-crash-unity](http://52.88.2.202/questions/question/dsp-getparameterdata-silent-crash-unity)
