# Not able to store the wav file with specified name using FMOD.OUTPUTTYPE.WAVWRITER in unity

**URL:** <https://qa.fmod.com/t/not-able-to-store-the-wav-file-with-specified-name-using-fmod-outputtype-wavwriter-in-unity/16086>\
**Category:** Unity\
**Created:** [August 18, 2020, 10:12am UTC](https://qa.fmod.com/t/not-able-to-store-the-wav-file-with-specified-name-using-fmod-outputtype-wavwriter-in-unity/16086 "2020-08-18T10:12:04Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [September 6, 2020, 11:07pm UTC](https://qa.fmod.com/t/not-able-to-store-the-wav-file-with-specified-name-using-fmod-outputtype-wavwriter-in-unity/16086/13 "2020-09-06T23:07:59Z")

</div>

For capturing audio I’ve posted some code in another thread you might find useful:

> [@Get sound data after dsp processing](https://qa.fmod.com/t/get-sound-data-after-dsp-processing/16089/4):
>
> Since we are in the Unity forum, I’m assuming you ultimately want to do this these in C# / Unity. I’ll put some code here to get you started, ultimately you’ll need to extend this for your desired goal. Eventually this code will be put into our documentation to help others. using System; using UnityEngine; using System.Runtime.InteropServices; class ScriptUsageCaptureDSP : MonoBehaviour { FMOD.DSP mCaptureDSP; FMOD.DSP\_READCALLBACK mReadCallback; float[] mDataBuffer; GCHandle m…

As for how to write a .wav file, that is beyond the scope of support we can provide here consider looking to [StackOverflow](https://stackoverflow.com/questions/14659684/creating-a-wav-file-in-c-sharp) for advice.

---

_[View the full topic](https://qa.fmod.com/t/not-able-to-store-the-wav-file-with-specified-name-using-fmod-outputtype-wavwriter-in-unity/16086)._
