Drakath Posted February 13, 2015 Share Posted February 13, 2015 I use playSound from a URL. The problem is that sometimes when that sound is played, I can only hear very loud frizzling. Sound is in .waw format. How can I fix it? Link to comment
Professional Posted February 13, 2015 Share Posted February 13, 2015 You can soften the sound of this function setSoundVolume [url=https://wiki.multitheftauto.com/wiki/PlaySound]https://wiki.multitheftauto.com/wiki/PlaySound[/url] setSoundVolume(sound, 0.5) -- set the sound volume to 50% Link to comment
Professional Posted February 13, 2015 Share Posted February 13, 2015 Please put code in order to help Link to comment
Drakath Posted February 13, 2015 Author Share Posted February 13, 2015 I know how to reduce the volume but that's not my question. I want to know why instead of playing my sound, it plays some sort of chirping noise. Code: playSound("http://mywebsite.com/sound.wav") Link to comment
Drakath Posted February 13, 2015 Author Share Posted February 13, 2015 function asdf() playSound("http://mywebsite.com/sound.wav") end addCommandHandler("haha", asdf) Link to comment
Professional Posted February 13, 2015 Share Posted February 13, 2015 function asdf() playSound("http://mywebsite.com/sound.wav") setSoundVolume(sound, Here the volume) end addCommandHandler("haha", asdf) Link to comment
Drakath Posted February 13, 2015 Author Share Posted February 13, 2015 Dude, I'm not asking how to set the sound volume. My sound sometimes plays INCORRECTLY, it plays a chirping noise instead of the sound. Link to comment
Drakath Posted February 13, 2015 Author Share Posted February 13, 2015 I recorded a video so you can hear it yourself. Link to comment
Jusonex Posted February 13, 2015 Share Posted February 13, 2015 What OS are you using? There are some audio issues on Windows 10. Furthermore, try converting the audio file to another format such as ogg or mp3. Link to comment
Gallardo9944 Posted February 13, 2015 Share Posted February 13, 2015 You can get similar problems with Wine + Pulseaudio, if you're low on resources. Link to comment
Drakath Posted February 13, 2015 Author Share Posted February 13, 2015 I changed it to mp3 and seems like it works fine now. Should I report the .wav bug? I'm running Windows 8. Link to comment
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