Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AudioSettings.outputSampleRate

static var outputSampleRate: int;
static int outputSampleRate;
static outputSampleRate as int

Description

Get and set the mixer's current output rate.

Note that setting a new samplerate will reset the audio system (all audio will stop).