RendererConfiguration


@UnstableApi
public final class RendererConfiguration


The configuration of a Renderer.

Summary

Constants

static final RendererConfiguration

The default configuration.

Public fields

final int

The offload mode preference with which to configure the renderer.

final boolean

Whether to enable tunneling.

Public constructors

RendererConfiguration(boolean tunneling)

Creates an instance with tunneling and sets offloadModePreferred to OFFLOAD_MODE_DISABLED.

RendererConfiguration(
    @AudioSink.OffloadMode int offloadModePreferred,
    boolean tunneling
)

Creates an instance.

Public methods

boolean
int

Constants

DEFAULT

public static final RendererConfiguration DEFAULT

The default configuration.

Public fields

offloadModePreferred

@AudioSink.OffloadMode
public final int offloadModePreferred

The offload mode preference with which to configure the renderer.

tunneling

public final boolean tunneling

Whether to enable tunneling.

Public constructors

RendererConfiguration

public RendererConfiguration(boolean tunneling)

Creates an instance with tunneling and sets offloadModePreferred to OFFLOAD_MODE_DISABLED.

Parameters
boolean tunneling

Whether to enable tunneling.

RendererConfiguration

public RendererConfiguration(
    @AudioSink.OffloadMode int offloadModePreferred,
    boolean tunneling
)

Creates an instance.

Parameters
@AudioSink.OffloadMode int offloadModePreferred

The offload mode to use.

boolean tunneling

Whether to enable tunneling.

Public methods

equals

public boolean equals(@Nullable Object obj)

hashCode

public int hashCode()