@Deprecated public abstract class AudioReceiver extends Object
The receiver uses a shared buffer. Keep this in mind when implementing.
receive()
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BUFFER_SIZE
Deprecated.
|
static AudioReceiver |
NO_OP
Deprecated.
|
Constructor and Description |
---|
AudioReceiver()
Deprecated.
|
AudioReceiver(ByteBuffer buffer)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getBuffer()
Deprecated.
|
void |
receive()
Deprecated.
Called when audio is received.
|
abstract void |
receive(char sequence,
int timestamp,
int ssrc,
byte[] audio)
Deprecated.
Called when audio is received, automatically extracting useful information.
|
public static final int DEFAULT_BUFFER_SIZE
public static final AudioReceiver NO_OP
public AudioReceiver()
public AudioReceiver(ByteBuffer buffer)
public ByteBuffer getBuffer()
public void receive()
public abstract void receive(char sequence, int timestamp, int ssrc, byte[] audio)
sequence
- The sequence of the packet.timestamp
- The timestamp of the packet.ssrc
- The ssrc of the audio source.audio
- The Opus-encoded audio.