summaryrefslogtreecommitdiffstats
path: root/media/libmedia/SoundPoolThread.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-07-12 09:05:58 -0700
committerGlenn Kasten <gkasten@google.com>2012-07-13 14:49:12 -0700
commit68337edf595a0c345ba4b8adcd4f1e541a1d7eb7 (patch)
tree121fce48f2765c8d13ecbc84dcf06c44d62096b4 /media/libmedia/SoundPoolThread.h
parent9cca4c6d976d2d4127286e9eaa54d1b99880c25c (diff)
downloadframeworks_av-68337edf595a0c345ba4b8adcd4f1e541a1d7eb7.zip
frameworks_av-68337edf595a0c345ba4b8adcd4f1e541a1d7eb7.tar.gz
frameworks_av-68337edf595a0c345ba4b8adcd4f1e541a1d7eb7.tar.bz2
AudioRecord client threading cleanup
Rename ClientRecordThread to AudioRecordThread to be more similar to AudioTrack naming. Only create the thread once, and use resume() and pause() for start() and stop(). This will allow us to have a known client callback thread tid that we can pass to AudioFlinger before start(). mActive: Made mActive a bool not int. mActive is protected by mLock; volatile is meaningless. Fixed a few places where mActive was accessed without a lock: - stopped() - processAudioBuffer() These aren't used internally, so no need for _l() versions. Change-Id: I4b8a5c90f3a22d3894b344564cb1c5aef4f1fda2
Diffstat (limited to 'media/libmedia/SoundPoolThread.h')
0 files changed, 0 insertions, 0 deletions