Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcda3b32 authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "AudioRecord::stop() return void"

parents 2bdb2f25 d64cd233
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −3
Original line number Diff line number Diff line
@@ -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