有些指令不知道

Home Home
引用 | 編輯 784063999
2010-11-01 23:12
樓主
推文 x0
emit_sound(index, channel, const sample[], Float:vol, Float:att,flags, pitch)
我不知道channel, Float:vol, Float:att,flags, pitch是什麼

獻花 x0
引用 | 編輯 史來姆
2010-11-02 16:45
1樓
  
從字面上看
channel = 頻道
vol = 音量
其他的不知道XD

獻花 x0
引用 | 編輯 784063999
2010-11-02 17:01
2樓
  
我那個是加入音樂的指令
是從inc裡看到的
但不知道怎用 表情

獻花 x0
引用 | 編輯 a128303603
2010-11-04 18:23
3樓
  
有些指令都英文看不懂 = =

獻花 x0
引用 | 編輯 i-c0112
2010-11-04 18:42
4樓
  
att = attenuation 中文不知怎翻,字面上意思是"衰減"(指的是淡出效果???)
pitch = 聲音頻率

flags   指的應該是以下的:

#define SND_SPAWNING            (1<<8)            // we're spawing, used in some cases for ambients
#define SND_STOP            (1<<5)            // stop sound
#define SND_CHANGE_VOL            (1<<6)            // change sound vol
#define SND_CHANGE_PITCH      (1<<7)            // change sound pitch

獻花 x0
引用 | 編輯 784063999
2010-11-05 13:13
5樓
  
我想知這些指令怎用

#define SND_SPAWNING         (1<<8)         // we're spawing, used in some cases for ambients
#define SND_STOP         (1<<5)         // stop sound
#define SND_CHANGE_VOL         (1<<6)         // change sound vol
#define SND_CHANGE_PITCH     (1<<7)         // change sound pitch

獻花 x0