Closed jackrugile closed 8 years ago
Pushed the update.
app.sound.setPanning(sound, pan);
pan
is -1.0
to 1.0
It may work better with mono sounds.
You're a wizard. It works perfectly. Thanks for implementing this so fast!
Sorry to reopen this again, but it looks like there is an error in Safari showing up:
TypeError: this.context.createStereoPanner is not a function. (In 'this.context.createStereoPanner()', 'this.context.createStereoPanner' is undefined)
getSoundBuffer playground.js:3108
Sorry for the delay - I have added a shim for createStereoPanner
Perfect, thanks! You're very fast by the way, thanks for getting on these changes so quickly.
I'd love to have any easy way to set the stereo panning for a sound. Similar to playbackRate, it would be nice to have:
This is just something simple to have my 2D character's sounds come from where they are on the screen, left and right.
Maybe name it something else, but you know what I mean. Just adding it to my wish list. I know there is a panner node somewhere at work behind the scenes already, too.
Thanks!