請問板上各位
我現在已經載入兩首歌(用load方式載入的)
現在兩首歌
a1_sound 和 a2_sound 要一起播放
a1_sound 維持原來的聲音大小
a2_sound 剩50%聲音大小
這用volume可以做到嗎?
該怎麼做呢?
查到了
var snd:Sound = new Sound(new URLRequest("bigSound.mp3"));
var trans:SoundTransform = new SoundTransform(0.6, -1);
var channel:SoundChannel = snd.play(0, 1, trans);
用這種方式就能分別控制兩首歌
但FLASH中顯示波形只能顯示總輸出的波型嗎
a1 維持原聲音大小
a2 關掉
波型輸出:輸出a2本來的波型(a2沒被關掉下)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 125.224.196.141
※ 編輯: driftseed 來自: 125.224.196.141 (02/21 18:32)