以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  不能播放音频  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=160900)

--  作者:rgbjwjb
--  发布时间:2021/2/25 16:10:00
--  不能播放音频

我的click事件代码为:Audio.Play(“ProjectPath & Attachments\\客户提醒.wav")

我在Attachments目录下也有 ”客户提醒.wav”这个文件,点击后仍提示:Please be sure a sound file exists at the specified location.

请问代码如何修改,请指教,谢谢!


--  作者:有点蓝
--  发布时间:2021/2/25 16:24:00
--  
Audio.Play有点挑,仅支持pcm格式的wav文件
--  作者:rgbjwjb
--  发布时间:2021/2/25 16:57:00
--  

原先的代码:Audio.Play(“C:\\Users\\Administrator\\Desktop\\客户提醒.wav")是可以播放的,发布时我将代码改为:Audio.Play(“ProjectPath & Attachments\\客户提醒.wav")就不好播放了,我觉得代码有问题,请帮修改一下,谢谢!

 


--  作者:有点蓝
--  发布时间:2021/2/25 17:27:00
--  
Audio.Play(ProjectPath & "Attachments\\客户提醒.wav")