diff options
author | Glenn Kasten <gkasten@google.com> | 2012-02-21 10:21:23 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-07-13 15:55:04 -0700 |
commit | d64cd233eef39430561c1e1df423336a199cc5d7 (patch) | |
tree | 34f6adda18ee4c4f2d1dea9ea4dbf0c84c2d0bfe | |
parent | 68337edf595a0c345ba4b8adcd4f1e541a1d7eb7 (diff) | |
download | frameworks_av-d64cd233eef39430561c1e1df423336a199cc5d7.zip frameworks_av-d64cd233eef39430561c1e1df423336a199cc5d7.tar.gz frameworks_av-d64cd233eef39430561c1e1df423336a199cc5d7.tar.bz2 |
AudioRecord::stop() return void
like AudioTrack::stop()
Change-Id: Iab62f4665151345f1ad5874c97a21d1a331f0154
-rw-r--r-- | include/media/AudioRecord.h | 2 | ||||
-rw-r--r-- | media/libmedia/AudioRecord.cpp | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/include/media/AudioRecord.h b/include/media/AudioRecord.h index f7ebd39..7e66ac9 100644 --- a/include/media/AudioRecord.h +++ b/include/media/AudioRecord.h @@ -201,7 +201,7 @@ public: * obtainBuffer returns STOPPED. Note that obtainBuffer() still works * and will fill up buffers until the pool is exhausted. */ - status_t stop(); + void stop(); bool stopped() const; /* get sample rate for this record track diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp index 807f812..9d5813b 100644 --- a/media/libmedia/AudioRecord.cpp +++ b/media/libmedia/AudioRecord.cpp @@ -324,7 +324,7 @@ status_t AudioRecord::start(AudioSystem::sync_event_t event, int triggerSession) return ret; } -status_t AudioRecord::stop() +void AudioRecord::stop() { sp<AudioRecordThread> t = mAudioRecordThread; @@ -345,8 +345,6 @@ status_t AudioRecord::stop() set_sched_policy(0, mPreviousSchedulingGroup); } } - - return NO_ERROR; } bool AudioRecord::stopped() const |