public static interface ShadowAudioTrack.OnAudioDataWrittenListener
AudioTrack
via AudioTrack.write(ByteBuffer, int, int)
Currently, only the data written through AudioTrack.write(ByteBuffer audioData, int sizeInBytes, int writeMode) will be reported.
Modifier and Type | Method | Description |
---|---|---|
void |
onAudioDataWritten(ShadowAudioTrack audioTrack,
byte[] audioData,
AudioFormat format) |
Called when data is written to
ShadowAudioTrack . |
void onAudioDataWritten(ShadowAudioTrack audioTrack, byte[] audioData, AudioFormat format)
ShadowAudioTrack
.audioTrack
- The ShadowAudioTrack
to which the data is written.audioData
- The data that is written to the ShadowAudioTrack
.format
- The output format of the ShadowAudioTrack
.