OSDN Git Service

Fix audio track pause.
authorEric Laurent <elaurent@google.com>
Wed, 13 Jun 2012 15:38:36 +0000 (08:38 -0700)
committerEric Laurent <elaurent@google.com>
Thu, 14 Jun 2012 17:56:59 +0000 (10:56 -0700)
commit192cbbad773979a6fe3b5a0c223356de4fc3309c
tree23bdbff8fd2a2b88a63a54287c6112908b050fb7
parent82233b4b5bee06f11618a558ae465abbfdedfd6e
Fix audio track pause.

AudioTrack::pause() should signal the control block condition
to release threads waiting for available buffers in obtainBuffer().
Otherwise the behavior relies on the timout on the condition
or the fact that audioflinger will mix a new audio buffer while executing
the pause.

Bug 6653769.

Change-Id: I5f8f73c471fe306070f30b814f32fd4b4dc1d575
media/libmedia/AudioTrack.cpp