Is there a way to control the sample rate and bit-depth of the audio output?

For some reason we need copy the audio output data to a certain destination in the memory. But the only desired output format should be in 48KHz as the sample rate and 24 bits per frame as the bit-depths.

I am wondering how can I archive this?

  1. Is there a way to directly control the output specs?
  2. If not, how do I know the current output bit-depths, (I know I can use the AudioSettings.outputSampleRate to get the sample rate), I need this to convert to my desired format.

Thanks

These settings, along with a bunch of other ones, can be tweaked individually for each AudioClip. Just select it in the project view and look at the inspector. Not sure about bit depth though…

And if you have a lot of them, you can use a tool to make the process practically instant (NB: we made it).