Package org.robolectric.shadows
Interface ShadowAudioTrack.OnAudioDataWrittenListener
-
- Enclosing class:
- ShadowAudioTrack
public static interface ShadowAudioTrack.OnAudioDataWrittenListener
Listeners to be notified when data is written to anAudioTrack
viaAudioTrack.write(ByteBuffer, int, int)
Currently, only the data written through AudioTrack.write(ByteBuffer audioData, int sizeInBytes, int writeMode) will be reported.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onAudioDataWritten(ShadowAudioTrack audioTrack, byte[] audioData, AudioFormat format)
Called when data is written toShadowAudioTrack
.
-
-
-
Method Detail
-
onAudioDataWritten
void onAudioDataWritten(ShadowAudioTrack audioTrack, byte[] audioData, AudioFormat format)
Called when data is written toShadowAudioTrack
.- Parameters:
audioTrack
- TheShadowAudioTrack
to which the data is written.audioData
- The data that is written to theShadowAudioTrack
.format
- The output format of theShadowAudioTrack
.
-
-