Interface AudioFilter

  • All Implemented Interfaces:

    
    public interface AudioFilter
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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
    • Constructor Detail

    • 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.