Unity 3D Sound

Sound
Audio Listener
音频听器
The Audio Listener acts as a microphone-like device. It receives input from any given Audio Source in the scene and plays sounds through the computer speakers. It is traditionally attached to the Main Camera.
音频就像一个麦克风装置一样,它接收从场景里的任何音频源的输入,并通过电脑的扬声器进行播放。传统的做法是将其加在主相机上。
远程调压阀The Audio Listener, attached to the Main Camera
Properties
属性
The Audio Listener has no properties. It simply must be added to work. It is always added to the Main Camera by default.
音频没有属性,只有被添加才会工作,它总是默认添加到主相机。
Details
细节
The Audio Listener works in conjunction with Audio Sources, allowing you to create the aural experience for your games. When the Audio Listener is attached to a GameObject in your scene, any Sources that are close enough to the Listener will be picked up and output to the computer's speakers. Each scene can only have 1 Audio Listener to work pr
operly.
音频侦听器协同音频源一起工作,为你的游戏提供听觉上的体验。当音频侦听器被添加到场景里得某个游戏对象上得时候,如果某些音频源距离侦听器足够近,就会被捕捉到,并输出到电脑的扬声器。严格来说每个场景在工作的时候只能有一个音频侦听器。
As long as the Sources are in mono format, the Listener will automatically position the sound correctly in the stereo field, at the correct volume. Stereo Sources will automatically play in both speakers. For example, if your character walks off a street into a night club, the night club's music should probably be stereo, while the individual voices of characters in the club should be mono with their realistic positioning being handled by Unity.
只要音频源是单声道的格式,会自动将声音定位到立体声场中正确的位置,用正确的音量播放。立体声音源则会自动在两个扬声器播放。例如,如果您控制的人物从街头进入一家夜总会,夜总会的音乐也许会是立体声,而在俱乐部里个人的声音应该是单声道的,这样Unity处理后得效果会更加逼真。
You should attach the Audio Listener to either the Main Camera or to the GameObject that represents the player. Try both to find what suits your game best.
你可以尝试把音频侦听器(Audio Listener)加在主相机或作为你控制对象的游戏对象(GameObject孕妇袜)上,以到最佳的效果。
Hints
提示
Each scene can only have one Audio Listener.
每个场景里只能有一个音频侦听器(Audio Listener)
You access the project-wide audio settings using the Audio Manager, found in the Edit->Project Settings->Audio menu.
你可以试用Audio Manager(音频管理器)来访问项目里的所有音频设置,调用音频管理器(Audio Manager)的方式是:Edit -> Project Settings -> Audio menu.
View the Audio Clip Component page for more information about Mono vs Stereo sounds.
查看音频剪辑(Audio Clip)组件页面查看更多关于单声道和立体声之间的优缺点
Audio Source
音频源
The Audio Source takes an Audio Clip and plays it from a position in the world.
音频源需要音频剪辑才能在某个位置播放。
The Audio Source in the Scene View and Inspector
音频源的场景视图和检视窗口
丰年虾孵化器
Properties
属性
气雾阀
Audio Clip
Reference to the sound clip file that will be played
音频剪辑
要播放声音剪辑的引用
Play On Awake
If enabled, the sound will start playing the moment the scene launches. If disabled, you need to start it using the Play() command from scripting.
自动播放
如果勾选,则声音会在场景加载完毕后开始播放。如果没有勾选,则需要你自己在脚本里调用Play()方法进行播放
Volume
How loud the sound is at a distance of 1 world unit (1 meter) from the Audio Listener光滑爪蟾.
音量
当音频侦听器距离它一米时声音的大小.
Pitch
Amount of change in pitch due to slowdown/speed up of the Audio Clip. Value 1 is normal playback speed.
音调
调节音频剪辑播放的速率来改变音调. 1代表正常的播放速度.
Min Volume
The minimum value of the sound. No matter how far away you get, the sound will not get softer than this value.
最小音量
声音的最小音量,不论距离该音频源多远,声音都不会比这个设定值来得更微弱.
Max Volume
How loud the sound gets at the loudest. No matter how close you get, the sound will never get louder than this value.
最大音量
声音播放的最大音量,不论多靠近个音频源,音量都不会大于这个值.
Rolloff Factor
How fast the sound fades. The higher the value, the closer the Listener has to be before hearing the sound.
滚降系数
声音衰退的系数,值越高,就要越靠近音频源才能听到声音.
氮化铝烧结炉
Loop
Enable this to make the Audio Clip loop when it reaches the end.
循环
音频剪辑(Audio Clip)是否循环播放.

本文发布于:2024-09-21 03:22:05,感谢您对本站的认可!

本文链接:https://www.17tex.com/tex/3/208963.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:音频   播放   声音   侦听器   场景
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议