summaryrefslogtreecommitdiff
path: root/libs/ui/FramebufferNativeWindow.cpp
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2009-11-04 08:27:26 -0800
committerEric Laurent <elaurent@google.com>2009-11-04 23:47:21 -0800
commitbda7469d9b1ec6d9c9d6da40ddf64dc39ff271a9 (patch)
treeb89b73e6feeadefb4ad958c0359789cf0ae5b90f /libs/ui/FramebufferNativeWindow.cpp
parente1e0dc8e6eaec052ebb6b88f5b1223075ce5a356 (diff)
Fix issue 2203561: Sholes: audio playing out of earpiece.
Create a new IAudioTrack interface to AudioFlinger when start() fails due to a broken pipe error. Do the same if start fails due to the same error after time out in obtainBuffer(). Do not indicate that the AudioTrack is started to AudioPolicyManager if IAudioTrack start fails. This avoids that an AudioTrack keeps a dead IAudioTrack after a media server crash. Same modifications for AudioRecord. Add a flag to ToneGenerator indicating that the callback thread can call Java. Without it, when the media server crashes and restarts, the AudioSystem error callback will crash in JNI if the IAudiotrack is created from AudioTrack callback thread.
Diffstat (limited to 'libs/ui/FramebufferNativeWindow.cpp')
0 files changed, 0 insertions, 0 deletions