PlayWavSound 函数没有声音的问题
//下一个Bar开始前,重新执行当前bar最后一次,参数为当前bar的图层数组 OnBarClose(ArrayRef<Integer> indexs) { PlayWavSound("D:\TB_MUSIC\3.wav"); }; 怎么让K线走完播放一下音乐, 或者给个播放声音的案例也行
//下一个Bar开始前,重新执行当前bar最后一次,参数为当前bar的图层数组 OnBarClose(ArrayRef<Integer> indexs) { PlayWavSound("D:\TB_MUSIC\3.wav"); }; 怎么让K线走完播放一下音乐, 或者给个播放声音的案例也行
好的,我下午看盘测试一下,谢谢老师解答。
Events OnBarClose(ArrayRef<Integer> indexs) { print("dt="+DateTimeToString(Date+Time)+", Barstats="+Text(BarStatus)); PlayWavSound("d:\\金叉.wav"); PlayWavSound("d:\\死叉.wav"); } 我用这段代码测试,是有声音的。wav文件您可以随便找个有声音的代替