找回密碼
 注冊帳號

掃一掃,訪問微社區

audioclip.channels 聲道數

2015-1-3 00:17| 發布者: 楊炎| 查看: 2340| 評論: 0|原作者: 蠻牛|來自: unity3d腳本manual

摘要: audioclip.channels 聲道數varchannels: intdescription描述channels in audio clip (read only)音頻剪輯的聲道數。(只讀)c#javascriptusing unityengine;using system.collections;public class example :monobeh ...

audioclip.channels 聲道數

varchannels: int

description描述

channels in audio clip (read only)

音頻剪輯的聲道數。(只讀)

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

debug.log(audio.clip.channels);

}

}

// prints how many channels the attached audio source has

// 1 --> mono 單聲道

// 2+ stereo 立體聲

//打印音頻源有多少聲道

debug.log(audio.clip.channels);

相關閱讀

文章點評
相關文章
女校游泳队彩金