Dsmoeg999 Posted April 5, 2023 Posted April 5, 2023 Hi guys I have downloaded a .WAV sound I have stored it in a different disk than C. I have saved it in a folder and then in another folder. When I use the example in the documentation it works. SoundPlay(@WindowsDir & "\media\tada.wav", 1) I have also tried to put the path in a different way and it doesn't work, can anyone guide me? This is what I have tried SoundPlay(@WindowsDir & "D:\MyFolder\Example\sound.wav", 1) SoundPlay(@WindowsDir & "D:/MyFolder/Example/sound.wav", 1)
Solution mistersquirrle Posted April 5, 2023 Solution Posted April 5, 2023 Why are you using @WindowsDir? Keep in mind that that's a macro used to point to your Windows folder, so for me it's: C:\WINDOWS This means your paths are: C:\WINDOWS\media\tada.wav C:\WINDOWSD:\MyFolder\Example\sound.wav That first one should be correct, but the second one definitely isn't. Does "D:\MyFolder\Example\sound.wav" work without @WindowsDir? Also, you may have whatever process is playing the sound muted in your Volume Mixer. I would try playing the sound in a loop and look at the volume mixer for what's the playing the sound and make sure it's not muted. The SoundPlay example for tada.wav worked for me. Dsmoeg999 1 We ought not to misbehave, but we should look as though we could.
Dsmoeg999 Posted April 5, 2023 Author Posted April 5, 2023 Thank you @mistersquirrle simply removing @WindowsDir and specifying the sound path works fine. Xandy 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now