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

FlxAssets.cacheSounds() -> FlxG.sound.cacheAll(), closes #1055 #1097

Merged
merged 3 commits into from
May 17, 2014

Conversation

Gama11
Copy link
Member

@Gama11 Gama11 commented May 16, 2014

Considering OpenFL has its own sound cache, I don't think we need the full-blown FlxG.sound.cache() described in #1055, but it still makes sense to have both of these caching functions in the same place.

@@ -138,6 +138,36 @@ class SoundFrontEnd
return Assets.getSound(EmbeddedSound, true);
}

#if !doc
/**
* Calls FlxG.sound.cache() on all sounds that are embedded.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment needs a warning indicating caching all sounds can lead to high memory usage.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should be pretty obvious, but sure, I can add that.

@Gama11
Copy link
Member Author

Gama11 commented May 17, 2014

Added a warning.

@gamedevsam
Copy link
Contributor

👍
Will merge once travis is green.

gamedevsam added a commit that referenced this pull request May 17, 2014
FlxAssets.cacheSounds() -> FlxG.sound.cacheAll(), closes #1055
@gamedevsam gamedevsam merged commit 5252871 into HaxeFlixel:dev May 17, 2014
@Gama11 Gama11 deleted the cacheSounds branch May 11, 2016 14:42
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

Successfully merging this pull request may close these issues.

2 participants