public static interface Player.AudioDeliveredCallback
Modifier and Type | Method and Description |
---|---|
int |
onAudioDelivered(short[] samples,
int sampleCount,
int sampleRate,
int channels)
Called every time raw audio data is received.
|
int onAudioDelivered(short[] samples, int sampleCount, int sampleRate, int channels)
samples
- Audio data delivered to by the native SDKsampleCount
- Number of samples in the frame buffer.sampleRate
- Sample rate of delivered buffer.channels
- Number of channels for delivered buffer.