summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioFlinger.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-11-13 09:58:55 -0800
committerGlenn Kasten <gkasten@google.com>2012-11-13 10:00:46 -0800
commit9f2016d9adfb4f88fa0bbfcfa5954f79160db595 (patch)
treefcf42032313d300ed952b622956fbeb0dc628a1e /services/audioflinger/AudioFlinger.h
parent93a7efd45c28becb994f0818ea29c00ec45eea57 (diff)
downloadframeworks_av-9f2016d9adfb4f88fa0bbfcfa5954f79160db595.zip
frameworks_av-9f2016d9adfb4f88fa0bbfcfa5954f79160db595.tar.gz
frameworks_av-9f2016d9adfb4f88fa0bbfcfa5954f79160db595.tar.bz2
Rename TrackBase::mFrameCount to mStepCount
This prepares for adding a new field TrackBase::mFrameCount with a different meaning. Change-Id: I6bbe2c59f2a882be57caeec2e2e06f439a0e9e83
Diffstat (limited to 'services/audioflinger/AudioFlinger.h')
-rw-r--r--services/audioflinger/AudioFlinger.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h
index 38744d0..8cf58b1 100644
--- a/services/audioflinger/AudioFlinger.h
+++ b/services/audioflinger/AudioFlinger.h
@@ -453,7 +453,7 @@ private:
return mState == TERMINATED;
}
- bool step();
+ bool step(); // mStepCount is an implicit input
void reset();
virtual bool isOut() const = 0; // true for Track and TimedTrack, false for RecordTrack,
@@ -466,7 +466,8 @@ private:
void* mBuffer; // start of track buffer, typically in shared memory
void* mBufferEnd; // &mBuffer[mFrameCount * frameSize], where frameSize
// is based on mChannelCount and 16-bit samples
- uint32_t mFrameCount;
+ uint32_t mStepCount; // saves AudioBufferProvider::Buffer::frameCount as of
+ // time of releaseBuffer() for later use by step()
// we don't really need a lock for these
track_state mState;
const uint32_t mSampleRate; // initial sample rate only; for tracks which