-
Notifications
You must be signed in to change notification settings - Fork 582
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
[LiveEffect sample] Crashes when plug in/out a headset #441
Comments
We will investigate. By the way, please attach long files instead of pasting them in. Is the Assert consistent or intermittent? The assertion is from "frameworks/av/media/libaudioclient/AudioTrackShared.cpp". 04-05 16:52:42.711 14968-15013/com.google.sample.oboe.liveeffect W/AudioTrack: dead IAudioTrack, PCM, creating a new one from getPosition() |
@ggfan Can you please try to repro on new and old systems? |
The Assert is consistent on ZTE N9132 (Android 5.1.1) only when a headset is plugged out (plugged in was okay). I've also tested on Pixel 2XL(Android 9), ZTE Z981 (Android 6.0.1) and HTC One (Android 4.4.2) with the audio API was fixed to OpenSLES. So, only ZTE N9132 has crashed by the assert during the tests. |
This looks like a DUP of #535 |
Closing as DUP of #535 |
Hi,
When a headset is pluged in/out, the error callbacks were not called (
onErrorBeforeClose
,onErrorAfterClose
and crashed with assertion fails (04-05 16:52:42.721 14968-15013/com.google.sample.oboe.liveeffect A/AudioTrackShared: Assertion failed: !(stepCount <= mUnreleased && mUnreleased <= mFrameCount)
)details are below:
Device: ZTE N9132
Oboe from the latest master branch
Android version 5.1.1
SampleRate 48000 Channel 2 FramesPerCallback 192 BufferSizeInFrames 3072 BufferCapacityInFrames 3072 FramesPerBurst 192, format: I16, sharingMode Shared, performance Mode: None
SampleRate 48000 Channel 2 FramesPerCallback 192 BufferSizeInFrames 384 BufferCapacityInFrames 384 FramesPerBurst 192, format: I16, sharingMode Shared, performanceMode None
Logs
The text was updated successfully, but these errors were encountered: