summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioFlinger.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-03-19 11:14:37 -0700
committerGlenn Kasten <gkasten@google.com>2012-03-20 17:15:12 -0700
commitf99590187e2e3f1cf6f093063170edec269cac5d (patch)
tree6eebb059b54519d1208ca349e63fc4cf452bc4d5 /services/audioflinger/AudioFlinger.h
parent6da08fc33642b832d1cde2e46815a5fd67dd0016 (diff)
downloadframeworks_av-f99590187e2e3f1cf6f093063170edec269cac5d.zip
frameworks_av-f99590187e2e3f1cf6f093063170edec269cac5d.tar.gz
frameworks_av-f99590187e2e3f1cf6f093063170edec269cac5d.tar.bz2
Clean up Track constructor
The 'thread' parameter can never be NULL. Use constructor initialization list when possible. Make more members const. Only put the relevant code under "if (mCblk != NULL)". Add comment about track name leak. Change-Id: Ib963390a69bed1999638cc982a759edd1d5f4712
Diffstat (limited to 'services/audioflinger/AudioFlinger.h')
-rw-r--r--services/audioflinger/AudioFlinger.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h
index 0e4b24a..b75d3a1 100644
--- a/services/audioflinger/AudioFlinger.h
+++ b/services/audioflinger/AudioFlinger.h
@@ -681,9 +681,9 @@ private:
enum {FS_FILLING, FS_FILLED, FS_ACTIVE};
mutable uint8_t mFillingUpStatus;
int8_t mRetryCount;
- sp<IMemory> mSharedBuffer;
+ const sp<IMemory> mSharedBuffer;
bool mResetDone;
- audio_stream_type_t mStreamType;
+ const audio_stream_type_t mStreamType;
int mName;
int16_t *mMainBuffer;
int32_t *mAuxBuffer;