Skip to content

Is there any way to get a callback when a ma_sound_stop_with_fade_in_*() function finishes the fade #867

Answered by mackron
dgnuff asked this question in Q&A
Discussion options

You must be logged in to vote

This is sort of half addressed in the dev-0.12 branch, though I suspect it'll be an unsatisfying solution for your specific case. In that branch you can configure a notification callback for when the sound reaches the end of it's data source, but that will not work robustly for a fade out because that is technically different to a stop. So unfortunately I don't think a good solution exists for your problem right now, at least not a simple single-function solution.

However, I agree that this is something miniaudio needs to support. Indeed, I have had the idea of a generalised trigger system in the back of my mind for a while which is something I should start planning for. My idea is that y…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dgnuff
Comment options

Answer selected by dgnuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants