|
主题: 请教关于调入外部声音并控制的问题,谢谢!
|
 zolo
职务:普通成员
等级:1
金币:0.0
发贴:20
注册:2001/1/5 18:55:49
|
#12002/5/15 9:53:33
我想在D中调入一段外部音频播放,下面是我的代码: on enterFrame me--当进入当前桢时 sound playfile 1,the moviepath&"sound\1.mp3"---在通道1中播放外部文件1.mp3 end
问题:1、我想让声音循环如何做? 2、这是一段背景音乐,4.3M,在整个节目中大概有3到4个这样的音频,怎样处理这些音频综合效果最好呢?是调入外部文件、外部演员表,还是打包在一起呢? 先谢了!
|
 wansky
职务:普通成员
等级:1
金币:0.0
发贴:3
注册:2002/3/7 17:00:12
|
#22002/5/15 10:51:01
我想是使用外部文件比较好吧! 想让它循环,可使用一个变量,通过变量来循环这个声音啊!
|
 zolo
职务:普通成员
等级:1
金币:0.0
发贴:20
注册:2001/1/5 18:55:49
|
#32002/5/15 13:21:31
举了例,先:)
|
 night_5d
职务:普通成员
等级:2
金币:1.0
发贴:275
注册:2000/12/15 21:24:38
|
#42002/5/15 14:02:45
sound(1).loopCount=0
[img]http://61.144.28.245/hjc/web/non-cgi//usravatars/paladin.gif[/img] I thirst for freedom
|
 贺兰雪
职务:普通成员
等级:1
金币:1.0
发贴:289
注册:2001/11/10 15:46:16
|
#52002/5/15 16:04:28
on exitframe r=random(1,5) if not (soundbusy(2)) then sound playfile 2, "@\sound\"&r&".mp3" go to the frame end 把声音文件放在sound文件中即可
|
 zolo
职务:普通成员
等级:1
金币:0.0
发贴:20
注册:2001/1/5 18:55:49
|
#62002/5/15 16:45:40
多谢各位了!但还有两丝困惑 1、这是一段背景音乐,4.3M,在整个节目中大概有3到4个这样的音频,怎样处理这些音频综合效果最好呢?是调入外部文件、外部演员表,还是打包在一起呢? 2、另外night,sound(1).loopCount=0怎么用呢?  My Lingo is so poooooooool.
|
 night_5d
职务:普通成员
等级:2
金币:1.0
发贴:275
注册:2000/12/15 21:24:38
|
#72002/5/16 13:31:25
1、外部文件就可以了,但为什么要用mp3,反正是背景音乐压成swa。 2、在你的sound playfile 1,the moviepath&"sound\1.mp3"后面加上就行了。
[img]http://61.144.28.245/hjc/web/non-cgi//usravatars/paladin.gif[/img] I thirst for freedom
|
 able
职务:普通成员
等级:1
金币:0.0
发贴:54
注册:2002/3/15 10:07:32
|
#82002/5/16 19:24:06
请问night,用你说的语句时,运行后会出现 script error:Property not found sound(1).loopCound=0
#loopCount. 是什么原因呀?
|
 满眼金星
职务:普通成员
等级:2
金币:1.0
发贴:441
注册:2000/12/15 21:17:37
|
#92002/5/16 20:38:45
将文件引入CAST表不是更简单么? 用Link to External File选项
|
 night_5d
职务:普通成员
等级:2
金币:1.0
发贴:275
注册:2000/12/15 21:24:38
|
#102002/5/17 10:18:42
sound(2).queue([#member:member("whichmember"), #loopCount:0]) sound(2).play()
[img]http://61.144.28.245/hjc/web/non-cgi//usravatars/paladin.gif[/img] I thirst for freedom
|
 ycl
职务:普通成员
等级:1
金币:0.0
发贴:158
注册:2001/8/9 15:56:00
|
#112002/5/17 10:25:48
mp3循环可能会有问题的
|
 zolo
职务:普通成员
等级:1
金币:0.0
发贴:20
注册:2001/1/5 18:55:49
|
#122002/5/17 13:23:26
多谢各位!问题已经清楚了,下面是我的源代码 on exitframe if not (soundbusy(1)) then sound playfile 1, "1.mp3" sound(1).queue([#member:member("whichmember"), #loopCount:0]) sound(1).play() go to the frame end
|