You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package;
importflixel.FlxState;
importflixel.FlxGclassPlayStateextendsFlxState
{
overridepublicfunctioncreate():Void
{
varsound=newFlxSound().loadEmbedded('sounds/[367] Ballerina_4');
// sound.pan = 1 if i put it in here it workssound.play();
sound.pan=1; // does not work
}
}
Observed behavior: the sound is not panning at all, stays at the center which is the pan of 0
Expected behavior: the sound should be coming from the right instead of the center
i created #2863 to try and fix this, but it only fixes it on html5, for mac builds panning seems to not work at all for me. I'm asking for guidance from openfl people
Code snippet reproducing the issue:
Observed behavior: the sound is not panning at all, stays at the center which is the pan of 0
Expected behavior: the sound should be coming from the right instead of the center
im assuming the issue is when openfl Sound clones the sound transform after playing it, specifically here https://github.com/openfl/openfl/blob/master/src/openfl/media/Sound.hx#L634
so the sound panning only works if you set it before actually playing the sound
The text was updated successfully, but these errors were encountered: