- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
87 lines
2.2 KiB
Java
87 lines
2.2 KiB
Java
package com.mbridge.msdk.playercommon.exoplayer2.audio;
|
|
|
|
import androidx.annotation.Nullable;
|
|
import com.mbridge.msdk.playercommon.exoplayer2.PlaybackParameters;
|
|
import java.nio.ByteBuffer;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public interface AudioSink {
|
|
public static final long CURRENT_POSITION_NOT_SET = Long.MIN_VALUE;
|
|
|
|
public interface Listener {
|
|
void onAudioSessionId(int i);
|
|
|
|
void onPositionDiscontinuity();
|
|
|
|
void onUnderrun(int i, long j, long j2);
|
|
}
|
|
|
|
void configure(int i, int i2, int i3, int i4, @Nullable int[] iArr, int i5, int i6) throws ConfigurationException;
|
|
|
|
void disableTunneling();
|
|
|
|
void enableTunnelingV21(int i);
|
|
|
|
long getCurrentPositionUs(boolean z);
|
|
|
|
PlaybackParameters getPlaybackParameters();
|
|
|
|
boolean handleBuffer(ByteBuffer byteBuffer, long j) throws InitializationException, WriteException;
|
|
|
|
void handleDiscontinuity();
|
|
|
|
boolean hasPendingData();
|
|
|
|
boolean isEncodingSupported(int i);
|
|
|
|
boolean isEnded();
|
|
|
|
void pause();
|
|
|
|
void play();
|
|
|
|
void playToEndOfStream() throws WriteException;
|
|
|
|
void release();
|
|
|
|
void reset();
|
|
|
|
void setAudioAttributes(AudioAttributes audioAttributes);
|
|
|
|
void setAudioSessionId(int i);
|
|
|
|
void setListener(Listener listener);
|
|
|
|
PlaybackParameters setPlaybackParameters(PlaybackParameters playbackParameters);
|
|
|
|
void setVolume(float f);
|
|
|
|
public static final class ConfigurationException extends Exception {
|
|
public ConfigurationException(Throwable th) {
|
|
super(th);
|
|
}
|
|
|
|
public ConfigurationException(String str) {
|
|
super(str);
|
|
}
|
|
}
|
|
|
|
public static final class InitializationException extends Exception {
|
|
public final int audioTrackState;
|
|
|
|
public InitializationException(int i, int i2, int i3, int i4) {
|
|
super("AudioTrack init failed: " + i + ", Config(" + i2 + ", " + i3 + ", " + i4 + ")");
|
|
this.audioTrackState = i;
|
|
}
|
|
}
|
|
|
|
public static final class WriteException extends Exception {
|
|
public final int errorCode;
|
|
|
|
public WriteException(int i) {
|
|
super("AudioTrack write failed: " + i);
|
|
this.errorCode = i;
|
|
}
|
|
}
|
|
}
|