Class FakeAudioRenderer

    • Method Detail

      • onEnabled

        protected void onEnabled​(boolean joining,
                                 boolean mayRenderStartOfStream)
                          throws ExoPlaybackException
        Description copied from class: BaseRenderer
        Called when the renderer is enabled.

        The default implementation is a no-op.

        Overrides:
        onEnabled in class BaseRenderer
        Parameters:
        joining - Whether this renderer is being enabled to join an ongoing playback.
        mayRenderStartOfStream - Whether this renderer is allowed to render the start of the stream even if the state is not Renderer.STATE_STARTED yet.
        Throws:
        ExoPlaybackException - If an error occurs.
      • onDisabled

        protected void onDisabled()
        Description copied from class: BaseRenderer
        Called when the renderer is disabled.

        The default implementation is a no-op.

        Overrides:
        onDisabled in class FakeRenderer
      • shouldProcessBuffer

        protected boolean shouldProcessBuffer​(long bufferTimeUs,
                                              long playbackPositionUs)
        Description copied from class: FakeRenderer
        Called before the renderer processes a buffer.
        Overrides:
        shouldProcessBuffer in class FakeRenderer
        Parameters:
        bufferTimeUs - The buffer timestamp, in microseconds.
        playbackPositionUs - The playback position, in microseconds
        Returns:
        Whether the buffer should be processed.