Class ShadowAudioRecord

java.lang.Object
org.robolectric.shadows.ShadowAudioRecord

@Implements(android.media.AudioRecord.class) public final class ShadowAudioRecord extends Object
Shadow AudioRecord which by default will fulfil any requests for audio data by completely filling any requested buffers.

It is also possible to provide the underlying data by implementing ShadowAudioRecord.AudioRecordSource and setting this via setSourceProvider(AudioRecordSourceProvider).