-
Notifications
You must be signed in to change notification settings - Fork 3
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
ADD setFinishCallback to SamplePlayer #64
Conversation
Hmm, I get this warning when compiling
|
Going to check this, from the first tests I get a compiler error:
This is trying to use samplePlayer.setFinishCallback(
proc(userData: pointer) =
playdate.system.logToConsole("Sound finished playing.")
) I'll investigate a bit. |
Also note that this feature can be implemented using a different approach too, avoiding tables. Should be pretty much the same as what you're trying to do here. |
todo: removal of callback is untested
* Add file tests, fix file exists, fix write length 0 * Centralize file error handling * Add proc for writing a string
6eb4019
to
7454878
Compare
Replaced by #67 |
Please check whether I handled the userdata pointer right.
Tested with a proc and with nil (to-unset) from the game's perspective. Did not test whether it was properly cleaned up in the files changed in this repo.
Sorry for the messy git history. Removing those .idea files from all branches trips me up