GvrAudioEngine.RenderingMode

  • GvrAudioEngine.RenderingMode defines constants to adjust the rendering mode for spatial audio, with higher quality options demanding more CPU resources.

  • Three rendering modes are available: BINAURAL_HIGH_QUALITY (16 virtual loudspeakers), BINAURAL_LOW_QUALITY (8 virtual loudspeakers), and STEREO_PANNING (basic stereo).

  • Binaural modes utilize HRTF-based rendering for realistic 3D sound, while stereo panning offers a simpler, less CPU-intensive approach.

  • Developers can choose the rendering mode based on desired audio quality and performance considerations.

public static abstract class GvrAudioEngine.RenderingMode

Defines constants to adjust rendering mode. Higher quality means more CPU load.

Constants

int BINAURAL_HIGH_QUALITY Renders all sounds over 16 virtual loudspeakers arranged around the listener's head.
int BINAURAL_LOW_QUALITY Renders all sounds over 8 virtual loudspeakers arranged around the listener's head.
int STEREO_PANNING Stereo panning of all sounds.

Public Constructors

Inherited Methods

Constants

public static final int BINAURAL_HIGH_QUALITY

Renders all sounds over 16 virtual loudspeakers arranged around the listener's head. HRTF-based rendering is enabled.

Constant Value: 2

public static final int BINAURAL_LOW_QUALITY

Renders all sounds over 8 virtual loudspeakers arranged around the listener's head. HRTF-based rendering is enabled.

Constant Value: 1

public static final int STEREO_PANNING

Stereo panning of all sounds. This disables HRTF-based rendering.

Constant Value: 0

Public Constructors

public GvrAudioEngine.RenderingMode ()