Class ShadowAudioRecord

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

@Implements(value=android.media.AudioRecord.class, minSdk=21) 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).