mirror of
https://github.com/samsonjs/media.git
synced 2026-03-29 10:05:48 +00:00
Deprecate experimental keepAudioTrackOnSeek methods.
#minor-release PiperOrigin-RevId: 570340714
This commit is contained in:
parent
9edbfa974a
commit
1bb501ab50
3 changed files with 6 additions and 22 deletions
|
|
@ -553,15 +553,9 @@ public interface AudioSink {
|
|||
void flush();
|
||||
|
||||
/**
|
||||
* Flushes the sink, after which it is ready to receive buffers from a new playback position.
|
||||
*
|
||||
* <p>Does not release the {@link AudioTrack} held by the sink.
|
||||
*
|
||||
* <p>This method is experimental, and will be renamed or removed in a future release.
|
||||
*
|
||||
* <p>Only for experimental use as part of {@link
|
||||
* MediaCodecAudioRenderer#experimentalSetEnableKeepAudioTrackOnSeek(boolean)}.
|
||||
* @deprecated Use {@link #flush()}.
|
||||
*/
|
||||
@Deprecated
|
||||
void experimentalFlushWithoutAudioTrackRelease();
|
||||
|
||||
/** Resets the sink, releasing any resources that it currently holds. */
|
||||
|
|
|
|||
|
|
@ -229,14 +229,9 @@ public abstract class DecoderAudioRenderer<
|
|||
}
|
||||
|
||||
/**
|
||||
* Sets whether to enable the experimental feature that keeps and flushes the {@link
|
||||
* android.media.AudioTrack} when a seek occurs, as opposed to releasing and reinitialising. Off
|
||||
* by default.
|
||||
*
|
||||
* <p>This method is experimental, and will be renamed or removed in a future release.
|
||||
*
|
||||
* @param enableKeepAudioTrackOnSeek Whether to keep the {@link android.media.AudioTrack} on seek.
|
||||
* @deprecated Experimental method being removed.
|
||||
*/
|
||||
@Deprecated
|
||||
public void experimentalSetEnableKeepAudioTrackOnSeek(boolean enableKeepAudioTrackOnSeek) {
|
||||
this.experimentalKeepAudioTrackOnSeek = enableKeepAudioTrackOnSeek;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -274,14 +274,9 @@ public class MediaCodecAudioRenderer extends MediaCodecRenderer implements Media
|
|||
}
|
||||
|
||||
/**
|
||||
* Sets whether to enable the experimental feature that keeps and flushes the {@link
|
||||
* android.media.AudioTrack} when a seek occurs, as opposed to releasing and reinitialising. Off
|
||||
* by default.
|
||||
*
|
||||
* <p>This method is experimental, and will be renamed or removed in a future release.
|
||||
*
|
||||
* @param enableKeepAudioTrackOnSeek Whether to keep the {@link android.media.AudioTrack} on seek.
|
||||
* @deprecated Experimental method being removed.
|
||||
*/
|
||||
@Deprecated
|
||||
public void experimentalSetEnableKeepAudioTrackOnSeek(boolean enableKeepAudioTrackOnSeek) {
|
||||
this.experimentalKeepAudioTrackOnSeek = enableKeepAudioTrackOnSeek;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue