-
Notifications
You must be signed in to change notification settings - Fork 2
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
Stopping playback does not stop currently playing audio files #20
Comments
this is gonna be a little tricky to fix. |
this is a big bet |
I was looking into this and I found some interesting stuff in the manpages. It might not be so complex, unless I'm missing a detail, but it should be possible to stop the thread by referencing its ID.
You might also just be able to keep track of the threads in the first place with an array and then |
So I think I've found another clue that could turn into a solution. The thread starts, and is stopped by pressing space like I've been doing, but that's not what needs to stop. In |
I might have something resembling a solution in https://github.com/WillNilges/sampleZone/tree/will-threading |
pthreads need to be killed when "stopping" the play back sequence even if the song is actually longer than a couple seconds. Long wav files will play until done once they start. This is a problem.
The text was updated successfully, but these errors were encountered: