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

Commit d8308984 authored by Glenn Kasten's avatar Glenn Kasten Committed by Android Git Automerger
Browse files

am 0c5b6274: Merge "Unhide android.media.AudioTrack.setVolume(float)"

* commit '0c5b6274':
  Unhide android.media.AudioTrack.setVolume(float)
parents 1237639f 0c5b6274
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -12610,6 +12610,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);