在OnBarOpen时候播放两次声音,为啥只播放最后一个?
在OnBarOpen时候播放两次声音,为啥只播放最后一个?如果注释任何其中一个,另一个都能播放声音,这是为啥?OnBarOpen(ArrayRef<Integer> indexs) { if(BarStatus == 2 ) {/////////只能播放A.WAV或B.WAV声音,注释掉其中一个PlayWavSound另外一个都能播放,这是为啥? musicPath=soundPath+"\\A.WAV"; optSoundPath=soundPath+"\\B.WAV" Bool ret = PlayWavSound(musicPath); Print("PlayWavSound1:" + IIFString(ret, "True", "False")); ret =PlayWavSound(optSoundPath); Print("PlayWavSound2:" + IIFString(ret, "True", "False")); }}