Y yooooooshi New Member Apr 2, 2010 #1 Hi! I tried to play a Sound with Sound(AppPath & "\sounds\sound.wav") This worked on my Pc, but when I tryed the same on my HD2 with Windows Mobile 6.5, i couldn't hear a sound. Can anybody help me?
Hi! I tried to play a Sound with Sound(AppPath & "\sounds\sound.wav") This worked on my Pc, but when I tryed the same on my HD2 with Windows Mobile 6.5, i couldn't hear a sound. Can anybody help me?
specci48 Well-Known Member Licensed User Longtime User Apr 3, 2010 #3 There should be no problem with that line of code. Maybe a typo in the foldername or the name of the .wav file on the device? Are the .wav files conected to the media player on the device? specci48
There should be no problem with that line of code. Maybe a typo in the foldername or the name of the .wav file on the device? Are the .wav files conected to the media player on the device? specci48
Y yooooooshi New Member Apr 4, 2010 #4 Hi, no, they are not connected to the media player. Thanks a lot for your answer! I'll try to connect them to the media player.
Hi, no, they are not connected to the media player. Thanks a lot for your answer! I'll try to connect them to the media player.
E ExcludeReality Active Member Licensed User Apr 4, 2010 #5 yooooooshi said: Hi, no, they are not connected to the media player. Thanks a lot for your answer! I'll try to connect them to the media player. Click to expand... That should'nt make any difference. You probably just spelled the file path wrong, or the file is corrupt. Either way you should still hear a "beep" noise. If nothing works you can launch WMP with the file path as a parameter
yooooooshi said: Hi, no, they are not connected to the media player. Thanks a lot for your answer! I'll try to connect them to the media player. Click to expand... That should'nt make any difference. You probably just spelled the file path wrong, or the file is corrupt. Either way you should still hear a "beep" noise. If nothing works you can launch WMP with the file path as a parameter
specci48 Well-Known Member Licensed User Longtime User Apr 4, 2010 #6 ExcludeReality said: That should'nt make any difference. Click to expand... It should because that's what the connection of file extensions is used for. ExcludeReality said: Either way you should still hear a "beep" noise. Click to expand... If you use a wrong path or filename no beep is played on the device. ExcludeReality said: If nothing works you can launch WMP with the file path as a parameter Click to expand... That's one solution but I think it is better to use the file connection so the individual preferred sound player is opened instead of a special application. specci48
ExcludeReality said: That should'nt make any difference. Click to expand... It should because that's what the connection of file extensions is used for. ExcludeReality said: Either way you should still hear a "beep" noise. Click to expand... If you use a wrong path or filename no beep is played on the device. ExcludeReality said: If nothing works you can launch WMP with the file path as a parameter Click to expand... That's one solution but I think it is better to use the file connection so the individual preferred sound player is opened instead of a special application. specci48
agraham Expert Licensed User Longtime User Apr 4, 2010 #7 specci48 said: It should because that's what the connection of file extensions is used for. Click to expand... Sorry Specci but he's correct on that one. The "Sound" keyword calls the Windows API "PlaySound" function on both desktop and device and that has nothing to do with file associations as they only map a file type to a default application. In this case no application is concerned in playing the file, the OS does it itself. You are however correct in that the device seems to have no default sound, that only seems to be implemented on the desktop. One all! :sign0089:
specci48 said: It should because that's what the connection of file extensions is used for. Click to expand... Sorry Specci but he's correct on that one. The "Sound" keyword calls the Windows API "PlaySound" function on both desktop and device and that has nothing to do with file associations as they only map a file type to a default application. In this case no application is concerned in playing the file, the OS does it itself. You are however correct in that the device seems to have no default sound, that only seems to be implemented on the desktop. One all! :sign0089:
specci48 Well-Known Member Licensed User Longtime User Apr 4, 2010 #8 agraham said: One all! :sign0089: Click to expand... And agraham always one ahead... specci48
N nick2210 Member Apr 4, 2010 #9 sound Hello. I have tried it both on desktop and device.The sound plays well. Sound("ph4.wav") Neither "apppath" keyword no backslash.
sound Hello. I have tried it both on desktop and device.The sound plays well. Sound("ph4.wav") Neither "apppath" keyword no backslash.
klaus Expert Licensed User Longtime User Apr 4, 2010 #10 I have tried different versions, compiled, on device (htc Touch HD) and desktop (XP). Sound(AppPAth&"\Sound.wav") Sound("Sound.wav") Sound(AppPAth&"\Sounds\Sound.wav") Sound("\Sounds\Sound.wav") device only ALL work well ! Best regards.
I have tried different versions, compiled, on device (htc Touch HD) and desktop (XP). Sound(AppPAth&"\Sound.wav") Sound("Sound.wav") Sound(AppPAth&"\Sounds\Sound.wav") Sound("\Sounds\Sound.wav") device only ALL work well ! Best regards.