This site has been permanently archived. The content on this site was last updated in 2019.
com.google.vr.sdk.audio
Stay organized with collections
Save and categorize content based on your preferences.
Code for 3D-spatialized sound in Google VR.
Classes
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[null,null,["Last updated 2024-10-09 UTC."],[[["\u003cp\u003eThis documentation provides code for creating 3D spatialized sound in Google VR experiences.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGvrAudioEngine\u003c/code\u003e class is the primary tool for spatializing sound sources within a 3D environment.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can control sound behavior using distance rolloff models, surface materials, and rendering modes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGvrAudioSurround\u003c/code\u003e class enables binaural rendering of surround sound and ambisonic soundfields for immersive audio experiences.\u003c/p\u003e\n"]]],["The provided content details classes for implementing 3D-spatialized sound within Google VR. Key classes include `GvrAudioEngine`, which spatializes sound sources, and `GvrAudioSurround`, which handles surround and ambisonic soundfields. `GvrAudioEngine` includes options to control distance effects through `DistanceRolloffModel`, define surface materials using `MaterialName`, and adjust the sound's rendering via `RenderingMode`. `GvrAudioSurround` uses `SurroundFormat` to manage surround sound formats. These classes allow for realistic audio integration into virtual reality environments.\n"],null,["# com.google.vr.sdk.audio\n\nCode for 3D-spatialized sound in Google VR.\n\n### Classes\n\n|--------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|\n| [GvrAudioEngine](/vr/reference/android/com/google/vr/sdk/audio/GvrAudioEngine) | Engine to spatialize sound sources in 3D space. |\n| [GvrAudioEngine.DistanceRolloffModel](/vr/reference/android/com/google/vr/sdk/audio/GvrAudioEngine.DistanceRolloffModel) | Defines constants representing different distance effect rolloff models. |\n| [GvrAudioEngine.MaterialName](/vr/reference/android/com/google/vr/sdk/audio/GvrAudioEngine.MaterialName) | Defines constants representing the surface materials for use with room effects. |\n| [GvrAudioEngine.RenderingMode](/vr/reference/android/com/google/vr/sdk/audio/GvrAudioEngine.RenderingMode) | Defines constants to adjust rendering mode. |\n| [GvrAudioSurround](/vr/reference/android/com/google/vr/sdk/audio/GvrAudioSurround) | Binaurally renders surround sound and ambisonic soundfields. |\n| [GvrAudioSurround.SurroundFormat](/vr/reference/android/com/google/vr/sdk/audio/GvrAudioSurround.SurroundFormat) | Defines constants to define surround format. |"]]