diff options
author | Glenn Kasten <gkasten@google.com> | 2012-07-30 10:59:30 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-08-30 15:31:00 -0700 |
commit | c3ae93f21280859086ae371428ffd32f39e76d50 (patch) | |
tree | 542d16fac64eb1f6e40c32517d60c2da5078e900 /services/audioflinger/AudioFlinger.h | |
parent | c9936c72c128a4a9288424fb082d7e7fe4b9b91f (diff) | |
download | frameworks_av-c3ae93f21280859086ae371428ffd32f39e76d50.zip frameworks_av-c3ae93f21280859086ae371428ffd32f39e76d50.tar.gz frameworks_av-c3ae93f21280859086ae371428ffd32f39e76d50.tar.bz2 |
Update audio comments
Change-Id: Ie7504d0ddb252f7e4d4f99ed0b44cfc7b1049816
Diffstat (limited to 'services/audioflinger/AudioFlinger.h')
-rw-r--r-- | services/audioflinger/AudioFlinger.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h index b4aefc1..4723cd9 100644 --- a/services/audioflinger/AudioFlinger.h +++ b/services/audioflinger/AudioFlinger.h @@ -454,8 +454,9 @@ private: /*const*/ sp<Client> mClient; // see explanation at ~TrackBase() why not const sp<IMemory> mCblkMemory; audio_track_cblk_t* mCblk; - void* mBuffer; - void* mBufferEnd; + 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; // we don't really need a lock for these track_state mState; @@ -1364,6 +1365,7 @@ private: // record thread class RecordThread : public ThreadBase, public AudioBufferProvider + // derives from AudioBufferProvider interface for use by resampler { public: @@ -1420,7 +1422,7 @@ private: void dumpInternals(int fd, const Vector<String16>& args); void dumpTracks(int fd, const Vector<String16>& args); - // Thread + // Thread virtuals virtual bool threadLoop(); virtual status_t readyToRun(); @@ -1968,9 +1970,10 @@ mutable Mutex mLock; // mutex for process, commands and handl DefaultKeyedVector< audio_io_handle_t, sp<PlaybackThread> > mPlaybackThreads; stream_type_t mStreamTypes[AUDIO_STREAM_CNT]; - // both are protected by mLock + // member variables below are protected by mLock float mMasterVolume; bool mMasterMute; + // end of variables protected by mLock DefaultKeyedVector< audio_io_handle_t, sp<RecordThread> > mRecordThreads; |