Class LibopusAudioRenderer

    • Constructor Detail

      • LibopusAudioRenderer

        public LibopusAudioRenderer()
        Deprecated.
      • LibopusAudioRenderer

        public LibopusAudioRenderer​(@Nullable
                                    Handler eventHandler,
                                    @Nullable
                                    AudioRendererEventListener eventListener,
                                    AudioProcessor... audioProcessors)
        Deprecated.
        Creates a new instance.
        Parameters:
        eventHandler - A handler to use when delivering events to eventListener. May be null if delivery of events is not required.
        eventListener - A listener of events. May be null if delivery of events is not required.
        audioProcessors - Optional AudioProcessors that will process audio before output.
      • LibopusAudioRenderer

        public LibopusAudioRenderer​(@Nullable
                                    Handler eventHandler,
                                    @Nullable
                                    AudioRendererEventListener eventListener,
                                    AudioSink audioSink)
        Deprecated.
        Creates a new instance.
        Parameters:
        eventHandler - A handler to use when delivering events to eventListener. May be null if delivery of events is not required.
        eventListener - A listener of events. May be null if delivery of events is not required.
        audioSink - The sink to which audio will be output.
    • Method Detail

      • getName

        public String getName()
        Deprecated.
        Description copied from interface: Renderer
        Returns the name of this renderer, for logging and debugging purposes. Should typically be the renderer's (un-obfuscated) class name.
        Returns:
        The name of this renderer.
      • getOutputFormat

        protected final Format getOutputFormat​(OpusDecoder decoder)
        Deprecated.
        Returns the format of audio buffers output by the decoder. Will not be called until the first output buffer has been dequeued, so the decoder may use input data to determine the format.
        Specified by:
        getOutputFormat in class DecoderAudioRenderer<OpusDecoder>
        Parameters:
        decoder - The decoder.
      • experimentalGetDiscardPaddingEnabled

        protected boolean experimentalGetDiscardPaddingEnabled()
        Deprecated.
        Returns true if support for padding removal from the end of decoder output buffer should be enabled.

        This method is experimental, and will be renamed or removed in a future release.