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

FlxSound: implement a setter for time #1792

Closed
Gama11 opened this issue Mar 28, 2016 · 3 comments
Closed

FlxSound: implement a setter for time #1792

Gama11 opened this issue Mar 28, 2016 · 3 comments
Milestone

Comments

@Gama11
Copy link
Member

Gama11 commented Mar 28, 2016

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@Gama11 Gama11 added this to the 4.1.0 milestone Mar 28, 2016
@MSGhero
Copy link
Member

MSGhero commented Apr 2, 2016

Should this actually start playing the sound at that time if the sound is paused or stopped?

@Gama11
Copy link
Member Author

Gama11 commented Apr 2, 2016

Hmm, very good question. I suspect that could be counter-intuitive, yet easier to implement.

@MSGhero
Copy link
Member

MSGhero commented Apr 2, 2016

In that case, you would have a private _time, and set_time() would just call startSound(). Otherwise, set _time, and the user calls resume() to start the sound at that time.

Confusion might occur if users try to play() instead of resume() with play's time parameter.

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

3 participants