scottschiller / SoundManager2

A JavaScript Sound API supporting MP3, MPEG4 and HTML5 audio + RTMP, providing reliable cross-browser/platform audio control in as little as 12 KB. BSD licensed.
http://www.schillmania.com/projects/soundmanager2/
Other
4.99k stars 768 forks source link

Pan attribute not working... #249

Open localota-travel opened 4 years ago

localota-travel commented 4 years ago

This is a fantastic tool and I have everything set up and playing properly. However, none of the pan attributes seem to function at any stage. I've tried setting the pan on sound creation and at the time the sound triggers with both mySound.setPan() and soundManager.play("mySounds", options);

Is anyone else experiencing this or can provide insight?

What I'm trying to do is have a sound play from the left channel when an object hits the left side of the screen and the right channel when it hits the right. I had this working using standard html 5 audio functionality, but it had other limitations which is why I started using this plugin.