主题:  没寻到相似有关声音的贴,求助!

welcome2001

职务:普通成员
等级:1
金币:0.0
发贴:92
注册:2000/10/28 10:26:39
#12004/2/18 12:31:07
一段背景音乐加上配音,人声配音解说是一段一段的swa
我在D中设置了global gLeft,gRight
用滑块调节soundLevel来控制整个director的环境音量。
因为解说词要对应画面,所以除了加时间等待外,还定义了声音结束检测
on exitframe me
if (pPlaysound.percentPlayed<100 and the frame = pSprite.endframe) then go the frame
end
现在如何单独控制人声配音解说,单独控制其音量大小或是开关掉人声配音都行,我定义了全局变量
global go_on
on mouseup me
go_on=not go_on
if go_on=true then
set the volume of sound 1 to 0
else
set the volume of sound 1 to 255
end if
end
如何把这个变量传递到下一段人声配音解说呢,我点击开关后,这一段人声消声了,不对下一段起作用。


灯光动画,闪盟多媒体
http://www.flash-union.com

大烧卖

职务:普通成员
等级:1
金币:0.0
发贴:73
注册:2000/12/27 9:23:29
#22004/2/18 14:29:15
不是太清楚自己是否已经了解了你的问题,不过你用 the soundLevel 应该会在全局范围内控制声音的强度吧??