Package 

Interface InputAudioFilter


  • 
    public interface InputAudioFilter
    
                        

    Manipulates the audio data before it's fed into WebRTC.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit applyFilter(Integer audioFormat, Integer channelCount, Integer sampleRate, ByteBuffer sampleData) Invoked after an audio sample is recorded.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • applyFilter

         abstract Unit applyFilter(Integer audioFormat, Integer channelCount, Integer sampleRate, ByteBuffer sampleData)

        Invoked after an audio sample is recorded. Can be used to manipulate the ByteBuffer before it's fed into WebRTC. Currently the audio in the ByteBuffer is always PCM 16bit and the buffer sample size is ~10ms.

        Parameters:
        audioFormat - format in android.media.