请问各位大大:
SoundChannel.soundTransform 与 SoundTransform的差异性在哪呢?
我简单测试了一下:
var sound:Sound = new Sound();
sound.load(new URLRequest("music.mp3"));
var myChannel:SoundChannel = new SoundChannel();
var mytransform:SoundTransform = new SoundTransform();
stage.addEventListener(MouseEvent.CLICK,go)
myChannel = sound.play();
function go(event:MouseEvent){
var aa = myChannel.soundTransform;
aa.volume -=0.1;
myChannel.soundTransform = aa;
}
与
var sound:Sound = new Sound();
sound.load(new URLRequest("music.mp3"));
var myChannel:SoundChannel = new SoundChannel();
var mytransform:SoundTransform = new SoundTransform();
stage.addEventListener(MouseEvent.CLICK,go)
myChannel = sound.play();
function go(event:MouseEvent){
mytransform.volume-=0.1;
myChannel.soundTransform = mytransform ;
}
看起来 SoundChannel 里的 soundTransform,与 SoundTransform 没什么差异...
但是实际上这两个的关系真的没差吗...?