IAudio 音乐音效部分 Music & SE


静态函数 Static Function

静态函数 说明 Description 备注 Note
IAudio.playSE(filename,volume)

播放文件名为filename的音乐文件作为SE,音量为volume。其中filename为游戏工程相对路径文件,volume为0~100的整形值

无
IAudio.stopSE() 停止SE Stop SE 无
IAudio.playVoice(filename,volume) 播放文件名为filename的音乐文件作为语音,音量为volume。 Play the voice named “filename”, and the volume is “volume”. 无
IAudio.stopVoice() 停止语音 Stop voice 无
IAudio.playBGM(filename,volume) 播放文件名为filename的音乐文件作为背景音乐,音量为volume。 Play the background music named “filename”, and the volume is “volume”. 无
IAudio.stopBGM() 停止背景音乐 Stop background music 无
IAudio.playBGS (filename,volume) 播放文件名为filename的音乐文件作为背景音效,音量为volume。 Play the background sound named “filename”, and the volume is “volume”. 无
IAudio.stopBGS() 停止背景音效 Stop background sound 无
IAudio.BGMFade(time) 用time时间淡出BGM,单位秒 Fade out BGM with time(in seconds) 无
IAudio.BGSFade(time) 用time时间淡出BGS,单位秒 Fade out BGS with time(in seconds) 无