grahampollitt@btinternet.
New member
- Joined
- Mar 31, 2007
- Messages
- 1
- Programming Experience
- Beginner
Hi
I use the following code
PublicFunctionPlayWav(ByValfileFullPathAsString) AsBoolean
My.Computer.Audio.Play(fileFullPath, AudioPlayMode.WaitToComplete)
EndFunction
elsewhere in the code I play a sound by
PlayWav("g\wav\startengines.wav")
The problem I have is the first time I pass a wav file it plays fine, the second time I pass a wav even if its the same as the first, I get an exception error stating it cant find the file.
Any ideas please?
thanks
Gray
edit - just noticed no : in the path name, doh!
I use the following code
PublicFunctionPlayWav(ByValfileFullPathAsString) AsBoolean
My.Computer.Audio.Play(fileFullPath, AudioPlayMode.WaitToComplete)
EndFunction
elsewhere in the code I play a sound by
PlayWav("g\wav\startengines.wav")
The problem I have is the first time I pass a wav file it plays fine, the second time I pass a wav even if its the same as the first, I get an exception error stating it cant find the file.
Any ideas please?
thanks
Gray
edit - just noticed no : in the path name, doh!
Last edited: