找回密码
 注册帐号

扫一扫,访问微社区

audiosettings.speakermode 扬声器模式

2015-1-3 11:37| 发布者: 杨炎| 查看: 3548| 评论: 0|原作者: 蛮牛|来自: unity3d脚本manual

摘要: audiosettings.speakermode 扬声器模式static varspeakermode:audiospeakermodedescription描述sets or gets the current speaker mode. default is 2 channel stereo.设置或获取当前扬声器的模式。默认为2声道立体 ...

audiosettings.speakermode 扬声器模式

static varspeakermode:audiospeakermode

description描述

sets or gets the current speaker mode. default is 2 channel stereo.

设置或获取当前扬声器的模式。默认为2声道立体声。

be aware that the audio system is bootstrapped, when a new speaker mode is set, meaning that all playing audiosources are stopped. if a speaker mode is set beyond the drivers capability, the audio behaviour is undefined. useaudiosettings.drivercapsto get the capabilities of the current driver.

请注意,音频系统是引导程序,当一个新的扬声器模式设置,这意味着所有正播放的音频源被停止。如果扬声器模式设置超出了驱动程序功能,则音频的行为是未定义的。使用audiosettings.drivercaps获取当前驱动程序的功能。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

audiosettings.speakermode=audiosettings.drivercaps;

// to set the speaker mode to that of the system settings.

//设置扬声器模式到系统的设置

audiosettings.speakermode=audiosettings.drivercaps;

相关阅读

文章点评
相关文章