Jump to content

playSound


Drakath

Recommended Posts

Posted

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?

Posted

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% 

Posted

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") 

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...