# Output Recording

**URL:** https://qa.fmod.com/t/output-recording/11684
**Category:** FMOD Engine
**Created:** [October 20, 2014, 2:35am UTC](https://qa.fmod.com/t/output-recording/11684 "2014-10-20T02:35:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![yuri](https://avatars.discourse-cdn.com/v4/letter/y/71c47a/32.png) [@yuri](https://qa.fmod.com/u/yuri)
#### Post date: [October 20, 2014, 2:35am UTC](https://qa.fmod.com/t/output-recording/11684/1 "2014-10-20T02:35:31Z")

</div>

I am trying to find out how to get the output sample data. So I can supply it to one of my encoders(for live streaming).

The first option I have looked at is using a custom DSP. It seems the sample rate is supplied with the callbacks in FMOD\_DSP\_STATE. I guess this is to encourage user to not assume a fixed sample rate? Now the issue is, is there a good way to get the samples along with essential information like the sample rate? Because the output stream needs a fixed rate.

Another option I checked is System::setOutput. This allows writing to files. But is it possible to have regular audio as well? It would be best to just have something like callbacks for output data.

---

<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: [October 20, 2014, 5:24am UTC](https://qa.fmod.com/t/output-recording/11684/2 "2014-10-20T05:24:55Z")

</div>

If you’re creating the application as well as the DSP you can call System::setSoftwareFormat() before System::init() to fix the sample rate. All non-leaf DSP units will run at this rate.

**However** , on platforms other than Windows, the sample rate may be changed by the output driver. You should call System::getSoftwareFormat() after System::init() to check if this has happened.

---

<div class="post-metadata">

### Author: ![yuri](https://avatars.discourse-cdn.com/v4/letter/y/71c47a/32.png) [@yuri](https://qa.fmod.com/u/yuri)
#### Post date: [October 20, 2014, 12:06pm UTC](https://qa.fmod.com/t/output-recording/11684/3 "2014-10-20T12:06:24Z")

</div>

> [@](#):
>
> If you’re creating the application as well as the DSP you can call System::setSoftwareFormat() before System::init() to fix the sample rate. All non-leaf DSP units will run at this rate.
> 
> **However** , on platforms other than Windows, the sample rate may be changed by the output driver. You should call System::getSoftwareFormat() after System::init() to check if this has happened.

Thanks for the info. I think I will default to the info from System::getSoftwareFormat() and just in case, also use a simple resampler.
