Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

AudioSettings.outputSampleRate

Switch to Manual
public static int outputSampleRate;

Description

Get the mixer's current output rate.

As of version 5.0 setting the sample rate from scripts is no longer supported. This has to be set in the Audio section of the project settings instead.

Did you find this page useful? Please give it a rating: