diff options
author | Glenn Kasten <gkasten@google.com> | 2012-11-07 10:13:08 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-11-08 11:22:38 -0800 |
commit | a47f3165f53c8e8fb8907a94de7417e2c3047eeb (patch) | |
tree | d6f691af946f8754b8534347c9b0b3ec535e776e /include/private | |
parent | 659004c2949620d8adb29e1d950a2dd1c75ba9a9 (diff) | |
download | frameworks_av-a47f3165f53c8e8fb8907a94de7417e2c3047eeb.zip frameworks_av-a47f3165f53c8e8fb8907a94de7417e2c3047eeb.tar.gz frameworks_av-a47f3165f53c8e8fb8907a94de7417e2c3047eeb.tar.bz2 |
Simplify AudioTrack::restoreTrack_l()
Remove CBLK_RESTORING and CBLK_RESTORED from control block flags,
for AudioTrack only. They are still used by AudioRecord.
This is part of a series to clean up the control block.
Change-Id: Iae4798f5b527c492bdaf789987ff3a1dadd0cb37
Diffstat (limited to 'include/private')
-rw-r--r-- | include/private/media/AudioTrackShared.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/private/media/AudioTrackShared.h b/include/private/media/AudioTrackShared.h index 46788c4..90301cd 100644 --- a/include/private/media/AudioTrackShared.h +++ b/include/private/media/AudioTrackShared.h @@ -31,6 +31,7 @@ namespace android { // init time #define MAX_RUN_TIMEOUT_MS 1000 #define WAIT_PERIOD_MS 10 +// AudioTrack no longer uses this, it is for AudioRecord only: #define RESTORE_TIMEOUT_MS 5000 // Maximum waiting time for a track to be restored #define CBLK_UNDERRUN 0x01 // set: underrun (out) or overrrun (in), clear: no underrun or overrun @@ -38,6 +39,7 @@ namespace android { // clear: track is ready when buffer full #define CBLK_INVALID 0x04 // track buffer invalidated by AudioFlinger, need to re-create #define CBLK_DISABLED 0x08 // track disabled by AudioFlinger due to underrun, need to re-start +// AudioTrack no longer uses these, they are for AudioRecord only: #define CBLK_RESTORING 0x10 // track is being restored after invalidation by AudioFlinger #define CBLK_RESTORED 0x20 // track has been restored after invalidation by AudioFlinger |