Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sound only plays after unpausing #238

Open
mrnerdman opened this issue Jul 8, 2013 · 1 comment
Open

Sound only plays after unpausing #238

mrnerdman opened this issue Jul 8, 2013 · 1 comment

Comments

@mrnerdman
Copy link

This is my create() function for my intro state, where I want to play a little ditty:

[Embed(source="../lib/intro.mp3")]
public var musicIntro:Class;

override public function create():void {
    //...insert irrelevant stuff here
    FlxG.play(musicIntro);
    super.create();
}

However, the sound only plays if I unfocus from the game(where the game dims and there's a big play button), then focus again.
Please help.

@IQAndreas
Copy link

Greetings, sorry for the delay.

In a "Community version" of Flixel we have been fixing and tweaking quite a bit with FlxSound to get it working, and we might actually have already solved the problem you are having trouble with.

Could you give one of these two a try (do you prefer sources or SWCs?):

and let us know if the changes fix your sound issue?

If not, just reply back here and we will try something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants