Audio 设置(主菜单:Edit > Project Settings,然后选择 Audio 类别)可用于调整场景中播放的所有声音的最大音量。
属性 | 功能 | |||
---|---|---|---|---|
Global Volume | 设置播放期间所有声音的音量。 | |||
Volume Rolloff Scale | 设置基于对数衰减的音频源的全局衰减系数。该值越大,音量衰减就越快。相反,值越小,衰减越慢。 提示:值为 1 将模拟“真实世界”。 |
|||
Doppler Factor | 设置多普勒效应的听觉影响。值为 0 将其禁用。值为 1 表示对于快速移动的对象应该能听得见声音。 提示:将 Doppler Factor 设置为 1 后,可调整 Speed of Sound 和 Doppler Factor__,直到满意为止。 | |Default Speaker Mode__ |
设置项目的默认扬声器模式。默认值为 2,对应于立体声扬声器。如需查看模式的完整列表,请参阅 AudioSpeakerMode API 参考。 注意:还可以通过脚本在运行时更改扬声器模式。有关详细信息,请参阅音频设置 (Audio Settings)。 |
||
System Sample Rate | 设置输出采样率。如果设置为 0,Unity 将使用系统的采样率。 注意:这仅作为参考,因为部分平台允许更改此采样率,例如 iOS 或 Android。 |
|||
DSP Buffer Size | 设置 DSP 缓冲区的大小来优化延迟或性能。 | |||
Default | 默认缓冲区大小。 | |||
Best Latency | 在牺牲性能的情况下降低延迟。 | |||
Good Latency | 在延迟和性能之间取得平衡。 | |||
Best Performance | 在牺牲延迟的情况下提高性能。 | |||
Max Virtual Voices | 设置音频系统管理的虚拟语音数。该值应始终大于游戏所播放的语音数量。否则,Unity 将在控制台中显示警告。 | |||
Max Real Voices | 设置可以同时播放的真实语音的数量。每一帧都会选取最响亮的语音。 | |||
Spatializer Plugin | 选择要使用哪个原生音频插件来执行 3D 音频源的空间滤波。 | |||
Ambisonic Decoder Plugin | 选择要使用哪个原生音频插件来执行音频源的环绕声到双耳滤波。 | |||
Disable Unity Audio | 启用此属性可在独立构建中停用音频系统。 在 Editor 中,音频系统仍然打开并支持预览音频剪辑,但 Unity 不会处理对 AudioSource.Play 和 AudioSource.playOnAwake 的调用来模拟独立构建的行为。 |
|||
Virtualize Effect | 启用此属性可动态关闭为节省 CPU 而剔除的 AudioSources 上的效果和空间音响。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.