#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
如何把这个变量传递到下一段人声配音解说呢,我点击开关后,这一段人声消声了,不对下一段起作用。