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

AudioStreamOpenSLES::processBufferCallback returns SL_RESULT_INTERNAL_ERROR #61

Closed
philburk opened this issue Feb 14, 2018 · 1 comment
Assignees
Milestone

Comments

@philburk
Copy link
Collaborator

philburk commented Feb 14, 2018

It does this in order to stop the stream if the callback requests a stop, in other words if the return from the callback is != DataCallbackResult::Continue.

Don suggested we could use the SL player interface to set the play state to stopped. E.g.

/~https://github.com/googlesamples/android-ndk/blob/master/audio-echo/app/src/main/cpp/audio_player.cpp#L235

Additionally, we could set the stream state to stopped.

We need to test and verify that it is safe to stop an OpenSL ES stream from a callback.

@dturner dturner added this to the v1.0 milestone Jun 20, 2018
@dturner dturner assigned dturner and unassigned philburk Aug 7, 2018
@dturner dturner assigned philburk and unassigned dturner Aug 24, 2018
@philburk philburk modified the milestones: v1.0, future Oct 5, 2018
@philburk
Copy link
Collaborator Author

philburk commented Jan 9, 2019

Fixed by #323

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

No branches or pull requests

2 participants