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

Commit 19294ca0 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Document need to call AudioRecord.getState() after construction

Change-Id: Ia6ebb5b01ae60453b6fc7db79e2ec3d40d2b56f1
parent a9838afb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -186,6 +186,9 @@ public class AudioRecord
    //--------------------
    /**
     * Class constructor.
     * Though some invalid parameters will result in an {@link IllegalArgumentException} exception,
     * other errors do not.  Thus you should call {@link #getState()} immediately after construction
     * to confirm that the object is usable.
     * @param audioSource the recording source. See {@link MediaRecorder.AudioSource} for
     *    recording source definitions.
     * @param sampleRateInHz the sample rate expressed in Hertz. 44100Hz is currently the only