summaryrefslogtreecommitdiffstats
path: root/include/media/AudioRecord.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2009-07-07 07:10:45 -0700
committerEric Laurent <elaurent@google.com>2009-07-07 07:10:45 -0700
commit573266210fb2b2e7d86fbd46d0dfe16763611d91 (patch)
treef7565b32ee2d59d5098dd165658c0aefa65f1fc4 /include/media/AudioRecord.h
parent76aa28371e93829927c66f1a48e39e18e01d704d (diff)
downloadframeworks_av-573266210fb2b2e7d86fbd46d0dfe16763611d91.zip
frameworks_av-573266210fb2b2e7d86fbd46d0dfe16763611d91.tar.gz
frameworks_av-573266210fb2b2e7d86fbd46d0dfe16763611d91.tar.bz2
Fix issue 1743700: AudioTrack: setPlaybackRate can not set the playback rate to twice of the ouputSR
Store sample rate on 32 bits instead of 16 bits in audio_track_cblk_t. Removed sampleRate() methods from AudioTrack and AudioRecord: replaced by getSampleRate(). AudioTrack::setSampleRate() no returns a status.
Diffstat (limited to 'include/media/AudioRecord.h')
-rw-r--r--include/media/AudioRecord.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/media/AudioRecord.h b/include/media/AudioRecord.h
index 3694803..13e51ee 100644
--- a/include/media/AudioRecord.h
+++ b/include/media/AudioRecord.h
@@ -197,7 +197,6 @@ public:
/* getters, see constructor */
- uint32_t sampleRate() const;
int format() const;
int channelCount() const;
uint32_t frameCount() const;
@@ -217,7 +216,7 @@ public:
status_t stop();
bool stopped() const;
- /* get sample rate for this track
+ /* get sample rate for this record track
*/
uint32_t getSampleRate();
@@ -323,7 +322,6 @@ private:
sp<ClientRecordThread> mClientRecordThread;
Mutex mRecordThreadLock;
- uint32_t mSampleRate;
uint32_t mFrameCount;
audio_track_cblk_t* mCblk;