summaryrefslogtreecommitdiffstats
path: root/include/private
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-11-08 17:13:02 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-11-08 17:13:02 -0800
commite35a582d02586cb43ad9e344138b4edad62868b3 (patch)
tree066953c839b4c25e43c8aab9137f2da7ba4aa531 /include/private
parentad9af03c4b491912239fc8c97a3ad0d342a33303 (diff)
parentb929e417853694e37aba1ef4399f188987b709d9 (diff)
downloadframeworks_av-e35a582d02586cb43ad9e344138b4edad62868b3.zip
frameworks_av-e35a582d02586cb43ad9e344138b4edad62868b3.tar.gz
frameworks_av-e35a582d02586cb43ad9e344138b4edad62868b3.tar.bz2
Merge "Move buffers pointer out of the control block"
Diffstat (limited to 'include/private')
-rw-r--r--include/private/media/AudioTrackShared.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/private/media/AudioTrackShared.h b/include/private/media/AudioTrackShared.h
index 90301cd..8ef90c7 100644
--- a/include/private/media/AudioTrackShared.h
+++ b/include/private/media/AudioTrackShared.h
@@ -58,9 +58,7 @@ struct audio_track_cblk_t
uint32_t userBase;
uint32_t serverBase;
- // if there is a shared buffer, "buffers" is the value of pointer() for the shared
- // buffer, otherwise "buffers" points immediately after the control block
- void* buffers;
+ int mPad1; // unused, but preserves cache line alignment
uint32_t frameCount;
// Cache line boundary
@@ -111,7 +109,10 @@ public:
bool stepServer(uint32_t frameCount, bool isOut);
- void* buffer(uint32_t offset) const;
+ // if there is a shared buffer, "buffers" is the value of pointer() for the shared
+ // buffer, otherwise "buffers" points immediately after the control block
+ void* buffer(void *buffers, uint32_t offset) const;
+
uint32_t framesAvailableIn() { return framesAvailable(false); }
uint32_t framesAvailableOut() { return framesAvailable(true); }
uint32_t framesAvailableIn_l() { return framesAvailable_l(false); }