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

Audio callback can break/corrupt the sound #4

Closed
A-tG opened this issue Mar 26, 2021 · 1 comment
Closed

Audio callback can break/corrupt the sound #4

A-tG opened this issue Mar 26, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@A-tG
Copy link
Owner

A-tG commented Mar 26, 2021

To fix this Unregister then Register callback again. Probably the API's bug.

@A-tG A-tG added the bug Something isn't working label Mar 26, 2021
@A-tG A-tG pinned this issue Mar 27, 2021
@A-tG
Copy link
Owner Author

A-tG commented Mar 27, 2021

Add System.Threading.Thread.Sleep() (10-20ms might be enough) between AudioCallbackRegister() and AudioCallbackStop() to avoid the problem.

@A-tG A-tG closed this as completed Mar 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant