Class ShadowAudioRecord

    • Constructor Detail

      • ShadowAudioRecord

        public ShadowAudioRecord()
    • Method Detail

      • clearSource

        @Resetter
        public static void clearSource()
        Resets ShadowAudioRecord.AudioRecordSource to be used for providing data to AudioRecord, so that all requests are fulfilled for audio data by completely filling any requested buffers.
      • native_get_min_buff_size

        @Implementation
        protected static int native_get_min_buff_size​(int sampleRateInHz,
                                                      int channelCount,
                                                      int audioFormat)
      • native_start

        @Implementation
        protected int native_start​(int syncEvent,
                                   int sessionId)
      • native_read_in_byte_array

        protected int native_read_in_byte_array​(byte[] audioData,
                                                int offsetInBytes,
                                                int sizeInBytes)
      • native_read_in_byte_array

        @Implementation(minSdk=23)
        protected int native_read_in_byte_array​(byte[] audioData,
                                                int offsetInBytes,
                                                int sizeInBytes,
                                                boolean isBlocking)
      • native_read_in_short_array

        protected int native_read_in_short_array​(short[] audioData,
                                                 int offsetInShorts,
                                                 int sizeInShorts)
      • native_read_in_short_array

        @Implementation(minSdk=23)
        protected int native_read_in_short_array​(short[] audioData,
                                                 int offsetInShorts,
                                                 int sizeInShorts,
                                                 boolean isBlocking)
      • native_read_in_float_array

        @Implementation(minSdk=23)
        protected int native_read_in_float_array​(float[] audioData,
                                                 int offsetInFloats,
                                                 int sizeInFloats,
                                                 boolean isBlocking)
      • native_read_in_direct_buffer

        protected int native_read_in_direct_buffer​(Object jBuffer,
                                                   int sizeInBytes)
      • native_read_in_direct_buffer

        @Implementation(minSdk=23)
        protected int native_read_in_direct_buffer​(Object jBuffer,
                                                   int sizeInBytes,
                                                   boolean isBlocking)