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

Commit 3f411cac authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Update AudioTrack comments

Change-Id: I0cdca92e3ac63088ed919c4dcfb309d3ccb59092
parent 9e83ea46
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -55,6 +55,8 @@ import android.util.Log;
 * be played from it.<br>
 * For the streaming mode, data will be written to the hardware in chunks of
 * sizes less than or equal to the total buffer size.
 *
 * AudioTrack is not final and thus permits subclasses, but such use is not recommended.
 */
public class AudioTrack
{
@@ -611,6 +613,9 @@ public class AudioTrack

    /**
     *  Returns the native frame count used by the hardware.
     *  @deprecated Only accessible by subclasses, which are not recommended for AudioTrack.
     *  See {@link AudioManager#getProperty(String)} for key
     *  {@link AudioManager#PROPERTY_OUTPUT_FRAMES_PER_BUFFER}.
     */
    protected int getNativeFrameCount() {
        return native_get_native_frame_count();
@@ -880,6 +885,7 @@ public class AudioTrack
     * Sets the initialization state of the instance. To be used in an AudioTrack subclass
     * constructor to set a subclass-specific post-initialization state.
     * @param state the state of the AudioTrack instance
     * @deprecated Only accessible by subclasses, which are not recommended for AudioTrack.
     */
    protected void setState(int state) {
        mState = state;