Jump to content
Search Community

Sound

Alexius test
Moderator Tag

Recommended Posts

Hey!

 

Just started looking at LoaderMax and it looks great!

 

How can I best control sounds, that have been qeued with mp3loader in loadeMax? Is there a good example for this? I want to easily dispose the sound as soon as they have been played, for example a clicksound.

 

Thanx! Again, it looks terrific!

Link to comment
Share on other sites

I'll be working on examples soon, but I'm completely sleep-deprived and working against some other project deadlines so unfortunately I can't whip one together for you. The MP3Loader's "content" property refers to the Sound object that was used to load it in the first place, so you can access that to play() it and make sure you keep track of the SoundChannel that Sound.play() spits back so that you can stop() it when you want. Then unload() or dispose(true) the loader to get rid of its references to the Sound object.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...