Package org.robolectric.shadows
Interface ShadowAudioTrack.OnAudioDataWrittenListener
- Enclosing class:
- ShadowAudioTrack
public static interface ShadowAudioTrack.OnAudioDataWrittenListener
Listeners to be notified when data is written to an
AudioTrack
via AudioTrack.write(ByteBuffer, int, int)
Currently, only the data written through AudioTrack.write(ByteBuffer audioData, int sizeInBytes, int writeMode) will be reported.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onAudioDataWritten
(ShadowAudioTrack audioTrack, byte[] audioData, AudioFormat format) Called when data is written toShadowAudioTrack
.
-
Method Details
-
onAudioDataWritten
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
.
-