AI-generated Key Takeaways
-
GvrAudioEngine.RenderingModedefines 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), andSTEREO_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.
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.
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.
public static final int STEREO_PANNING
Stereo panning of all sounds. This disables HRTF-based rendering.