diff options
author | Glenn Kasten <gkasten@google.com> | 2012-12-18 15:57:32 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2013-06-12 14:33:10 -0700 |
commit | 9f80dd223d83d9bb9077fb6baee056cee4eaf7e5 (patch) | |
tree | 79f19f80ebb7978e9bab16e1d9b835849c735592 /services/audioflinger/TrackBase.h | |
parent | 9fef8d453b15a91a2b748faac2bfaff713bcf1e1 (diff) | |
download | frameworks_av-9f80dd223d83d9bb9077fb6baee056cee4eaf7e5.zip frameworks_av-9f80dd223d83d9bb9077fb6baee056cee4eaf7e5.tar.gz frameworks_av-9f80dd223d83d9bb9077fb6baee056cee4eaf7e5.tar.bz2 |
New control block for AudioTrack and AudioRecord
Main differences between old and new control block:
- removes the mutex, which was a potential source of priority inversion
- circular indices into shared buffer, which is now always a power-of-2 size
Change-Id: I4e9b7fa99858b488ac98a441fa70e31dbba1b865
Diffstat (limited to 'services/audioflinger/TrackBase.h')
-rw-r--r-- | services/audioflinger/TrackBase.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/TrackBase.h b/services/audioflinger/TrackBase.h index fac7071..55d96fa 100644 --- a/services/audioflinger/TrackBase.h +++ b/services/audioflinger/TrackBase.h @@ -74,7 +74,7 @@ protected: audio_channel_mask_t channelMask() const { return mChannelMask; } - uint32_t sampleRate() const; // FIXME inline after cblk sr moved + virtual uint32_t sampleRate() const { return mSampleRate; } // Return a pointer to the start of a contiguous slice of the track buffer. // Parameter 'offset' is the requested start position, expressed in |