# Fmod\_outputtype\_wavwriter\_nrt

**URL:** <https://qa.fmod.com/t/fmod-outputtype-wavwriter-nrt/16895>\
**Category:** Unity\
**Created:** [March 17, 2021, 9:31pm UTC](https://qa.fmod.com/t/fmod-outputtype-wavwriter-nrt/16895 "2021-03-17T21:31:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dafar](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@dafar](https://qa.fmod.com/u/dafar)\
**Post date:** [March 17, 2021, 9:31pm UTC](https://qa.fmod.com/t/fmod-outputtype-wavwriter-nrt/16895/1 "2021-03-17T21:31:18Z")

</div>

Hi,

Is there any sample code that I can try to save the output of the master channel to a stereo audio file including everything in the mix (volumes, pan, sends)?

I want to create a button on the UI that will record the mixed event to an audio file.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [March 22, 2021, 11:27pm UTC](https://qa.fmod.com/t/fmod-outputtype-wavwriter-nrt/16895/2 "2021-03-22T23:27:42Z")

</div>

You can look into the `record.cpp` example that is included with the FMOD Studio API installation. This should give you some ideas on how the recording aspect of FMOD Studio works.

---

<div class="post-metadata">

**Author:** ![dafar](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@dafar](https://qa.fmod.com/u/dafar)\
**Post date:** [March 23, 2021, 12:32pm UTC](https://qa.fmod.com/t/fmod-outputtype-wavwriter-nrt/16895/3 "2021-03-23T12:32:42Z")

</div>

Sorry for the stupid question, but how to find these? Inside FMOD?  
I tried to search inside my computer and it couldn’t find any record.cpp

Is it something I should install? How?

I’m using Mac and latest FMOD version with Unity. 2019.4

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [March 23, 2021, 10:26pm UTC](https://qa.fmod.com/t/fmod-outputtype-wavwriter-nrt/16895/4 "2021-03-23T22:26:29Z")

</div>

In your FMOD account, download the appropriate version of FMOD Engine. After installing there should be a `api\core\examples` folder in the FMOD API directory. In here you will see record.cpp and an Xcode project you can open if you want.

---

<div class="post-metadata">

**Author:** ![dafar](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@dafar](https://qa.fmod.com/u/dafar)\
**Post date:** [March 24, 2021, 10:27am UTC](https://qa.fmod.com/t/fmod-outputtype-wavwriter-nrt/16895/5 "2021-03-24T10:27:46Z")

</div>

Hi, Richard. Thanks for the reply.

As I can see, the examples are in C++.  
Is there something in C# for Unity?

Or am I missing the correct files?

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [April 5, 2021, 11:02pm UTC](https://qa.fmod.com/t/fmod-outputtype-wavwriter-nrt/16895/6 "2021-04-05T23:02:49Z")

</div>

That is correct, the examples provided with the API installation are just C++. The principles are the same but you will need to find a way to do that in Unity C#. You would likely need to ask in the Unity forums as this is more programming related.
