-
Notifications
You must be signed in to change notification settings - Fork 565
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
log error if value accessed in ErrorOrValue when error != OK #76
Comments
I'm not sure this is such a good idea, we'd be adding a check to every call to |
How much overhead an integer comparison adds? Also, I'm not aware of any methods in Oboe that need to be called in a tight loop. I agree it's caller's responsibility to check for the return code, but when they forget to do that and something is not working, checking the log and seeing that there was an error is a great help for them. |
Phil and I have some concerns about the extra overhead which would be introduced by branching, especially when some get methods (e.g. getXRunCount) might be called on every callback. |
I am more concerned about suddenly flooding the logcat with error messages. For example, if getXRunCount() returns zero value because it is not supported, then no big deal. |
Suggested by Mikhail so that we can tell if a caller is ignoring the error return value.
The text was updated successfully, but these errors were encountered: