Skip to content

OpenSL ES: Return ErrorInvalidFormat instead of ErrorInternal for invalid format#1634

Merged
robertwu1 merged 4 commits intomainfrom
robertwu1/openslesformats
Oct 19, 2022
Merged

OpenSL ES: Return ErrorInvalidFormat instead of ErrorInternal for invalid format#1634
robertwu1 merged 4 commits intomainfrom
robertwu1/openslesformats

Conversation

@robertwu1
Copy link
Copy Markdown
Collaborator

OpenSL ES only supports float and I16. We should return that other formats are invalid if OpenSL ES is used. Otherwise, it may be hard for developers to debug.

@robertwu1 robertwu1 requested a review from philburk September 27, 2022 00:00
Copy link
Copy Markdown
Contributor

@philburk philburk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look for other format check in Oboe.

@robertwu1 robertwu1 changed the title OpenSL ES: Return ErrorInvalidFormat instead of ErrorInternal for invalid sample rates OpenSL ES: Return ErrorInvalidFormat instead of ErrorInternal for invalid format Sep 28, 2022
@robertwu1
Copy link
Copy Markdown
Collaborator Author

Look for other format check in Oboe.

Done. Thanks for the suggestion!

@robertwu1 robertwu1 merged commit 9724ec6 into main Oct 19, 2022
@robertwu1 robertwu1 deleted the robertwu1/openslesformats branch November 24, 2022 00:39
@robertwu1 robertwu1 restored the robertwu1/openslesformats branch February 24, 2023 00:55
@robertwu1 robertwu1 deleted the robertwu1/openslesformats branch February 24, 2023 00:56
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.

3 participants