Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -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); media/java/android/media/AudioTrack.java +6 −2 Original line number Diff line number Diff line Loading @@ -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); Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -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);
media/java/android/media/AudioTrack.java +6 −2 Original line number Diff line number Diff line Loading @@ -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); Loading