Package 

Interface AudioDeviceRenderer


  • 
    public interface AudioDeviceRenderer
    
                        

    AudioDeviceRenderer interface provides the mechanism to define a custom audio device renderer.

    • Method Summary

      Modifier and Type Method Description
      abstract AudioFormat getRendererFormat() Returns the format of the audio that will be rendered.
      abstract boolean onInitRenderer() Raised when the Renderer is ready to be initialized.
      abstract boolean onStartRendering(@NonNull() AudioDeviceContext audioDeviceContext) Raised when the renderer is ready to render.
      abstract boolean onStopRendering() Raised when the capturer stops rendering.
      • Methods inherited from class java.lang.Object

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

      • getRendererFormat

        @Nullable() abstract AudioFormat getRendererFormat()

        Returns the format of the audio that will be rendered. Returning {@code null} indicatesrendering is not supported.

      • onInitRenderer

         abstract boolean onInitRenderer()

        Raised when the Renderer is ready to be initialized. This method is called before .

      • onStopRendering

         abstract boolean onStopRendering()

        Raised when the capturer stops rendering.