文档

Unity Engine

Unity Engine

outputSampleRate

Get the mixer's current output rate.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AudioModule
public static int outputSampleRate { get; set; }

Remarks

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.