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

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

Unhide android.media.AudioTrack.setVolume(float)

Bug: 12534920
Change-Id: I7d7437f87f7002c42452011e347e89ddaa0bf6a5
parent 35f922d1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -12621,6 +12621,7 @@ package android.media {
    method public int setPositionNotificationPeriod(int);
    method protected deprecated void setState(int);
    method public int setStereoVolume(float, float);
    method public int setVolume(float);
    method public void stop() throws java.lang.IllegalStateException;
    method public int write(byte[], int, int);
    method public int write(short[], int, int);
+6 −2
Original line number Diff line number Diff line
@@ -839,8 +839,12 @@ public class AudioTrack


    /**
     * Similar, except set volume of all channels to same value.
     * @hide
     * Sets the specified output volume values on all channels of this track.  The value is clamped
     * to the ({@link #getMinVolume()}, {@link #getMaxVolume()}) interval if outside this range.
     * @param volume output attenuation for all channels. A value of 0.0f is silence,
     *      a value of 1.0f is no attenuation.
     * @return error code or success, see {@link #SUCCESS},
     *    {@link #ERROR_INVALID_OPERATION}
     */
    public int setVolume(float volume) {
        return setStereoVolume(volume, volume);