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 #172

Closed
FlixelCommunityBot opened this issue Aug 17, 2013 · 3 comments
Closed

Sound only plays after unpausing #172

FlixelCommunityBot opened this issue Aug 17, 2013 · 3 comments
Assignees
Labels
Milestone

Comments

@FlixelCommunityBot
Copy link

Issue by mrnerdman from 2013-07-08T21:39:29Z
Originally opened as AdamAtomic#238


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.

@ghost ghost assigned IQAndreas Aug 19, 2013
@IQAndreas
Copy link
Member

This bug might have already been solved with the extensive changes we made to FlxSound.

I have recommended @mrnerdman give the code in the dev branch a try, so we will see if that solves the issue for him.

@Dovyski
Copy link
Member

Dovyski commented Aug 19, 2013

I confirm this bug has been fixed in dev. I've tested the code snippet on Flixel Sandbox using the last dev and it worked as expected.

@IQAndreas
Copy link
Member

I'm closing this issue assuming the specific issue addressed by @mrnerdman has indeed been fixed; but the issue can be re-opened if needed.

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

No branches or pull requests

3 participants