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

Fix for issue #415 (play queue stall) #417

Merged

Conversation

h4yn0nnym0u5e
Copy link
Contributor

Fixes issue #415 by optionally providing error returns from various methods, instead of burning CPU waiting for audio blocks or queue space to free up. Defaults to original behaviour so old code should still work the same. Updated GUI documentation is included.

Adds an example which demonstrates the various modes of operation.

Calling queue.setBehaviour(AudioPlayQueue::NON_STALLING) gives a non-zero result if ::play() did not complete; the call must be re-tried later.

In this mode ::getBuffer() may return NULL, as documented, and ::playBuffer() will return non-zero if it failed; as for ::play(), when this happens the operation must be re-tried later.
@h4yn0nnym0u5e h4yn0nnym0u5e changed the title Fix for issue #415 Fix for issue #415 (play queue stall) Nov 23, 2021
@PaulStoffregen PaulStoffregen merged commit 0987810 into PaulStoffregen:master Dec 17, 2021
@h4yn0nnym0u5e h4yn0nnym0u5e deleted the bugfix/play_queue_stall branch September 9, 2024 10:57
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

Successfully merging this pull request may close these issues.

2 participants