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

Commit d64cd233 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

AudioRecord::stop() return void

like AudioTrack::stop()

Change-Id: Iab62f4665151345f1ad5874c97a21d1a331f0154
parent 68337edf
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