Rename TrackBase::mFrameCount to mStepCount
This prepares for adding a new field TrackBase::mFrameCount
with a different meaning.
Change-Id: I6bbe2c59f2a882be57caeec2e2e06f439a0e9e83
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 @@
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 @@
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