diff options
author | Eric Laurent <elaurent@google.com> | 2009-07-07 07:10:45 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2009-07-07 07:10:45 -0700 |
commit | 573266210fb2b2e7d86fbd46d0dfe16763611d91 (patch) | |
tree | f7565b32ee2d59d5098dd165658c0aefa65f1fc4 /include/media/AudioTrack.h | |
parent | 76aa28371e93829927c66f1a48e39e18e01d704d (diff) | |
download | frameworks_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/AudioTrack.h')
-rw-r--r-- | include/media/AudioTrack.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h index ba0467c..7c86a65 100644 --- a/include/media/AudioTrack.h +++ b/include/media/AudioTrack.h @@ -201,7 +201,6 @@ public: /* getters, see constructor */ int streamType() const; - uint32_t sampleRate() const; int format() const; int channelCount() const; uint32_t frameCount() const; @@ -246,7 +245,7 @@ public: /* set sample rate for this track, mostly used for games' sound effects */ - void setSampleRate(int sampleRate); + status_t setSampleRate(int sampleRate); uint32_t getSampleRate(); /* Enables looping and sets the start and end points of looping. |