A Beat Saber mod that adds head-tracked spatial audio to your music on Quest.
Quest Spatial Audio makes stereo songs sound like they're playing around you. The sound stays anchored to the stage as you turn your head. For example, sound on your right moves in front of you when you turn 90° to the right.
It works with your existing songs, without stems or extra setup for each map. It adds a wider sound field and some rear ambience while leaving menu music and saber sounds alone. Use stereo headphones to hear the effect.
This is an early prototype for standalone Quest Beat Saber 1.40.8_7379 with Scotland2, with development focused on Quest 2. Version 0.2.0 still needs in-game listening and performance testing.
- Use the matching Beat Saber version with Scotland2 installed.
- Install
QuestSpatialAudio-0.2.0.qmodthrough your Scotland2-compatible mod manager. - Start a song and turn your head to hear the effect.
If you're building it yourself, the QMOD is created in dist/.
The mod requires beatsaber-hook 6.4.2+, custom-types 0.18.4+, and paper2_scotland2 4.8.0+. The QMOD includes download links for these dependencies. Game files are not included.
There's no in-game settings menu yet. After starting a level, edit:
/sdcard/ModData/com.beatgames.beatsaber/Configs/quest-spatial-audio.json
The defaults are:
{
"enabled": true,
"surroundAmount": 0.3,
"outputGain": 0.5
}enabled: set tofalseto turn the effect off and compare it with normal playback.surroundAmount: rear ambience strength, from0to0.6. Setting it to0keeps head tracking and the wider stereo image.outputGain: output level, from0to1. The default leaves room for the added audio without clipping.
Changes apply when you start the next level.
You'll need PowerShell 7, CMake 3.22+, Ninja, QPM, and Android NDK r27. Run these commands from the project folder:
qpm restore
qpm ndk resolve -d
pwsh ./scripts/build.ps1 -PackageThe finished package is dist/QuestSpatialAudio-0.2.0.qmod. The build script
also supports the portable CMake and QPM tools under .tools/.
For development, connect your headset with ADB and run this after building:
pwsh ./scripts/deploy.ps1 -LaunchThe deploy script checks the game and dependency versions, backs up any existing copy of this mod, and copies the new library. This installs it directly without registering it in your mod manager. To remove that installation, stop Beat Saber and delete only:
/sdcard/ModData/com.beatgames.beatsaber/Modloader/mods/libquest-spatial-audio.so
Run the audio tests locally on Windows with Zig installed, available on PATH
or under .tools/zig/:
pwsh ./scripts/test-local.ps1You can also pass -Zig with the path to its executable. Local tests don't
connect to your headset.
To build and run the audio tests on a connected headset instead, use:
pwsh ./scripts/test.ps1These tests check the audio processing, rotations, and reset behavior. They don't replace testing inside Beat Saber. Try turning your head, pausing, restarting, and seeking in practice mode, then compare with the effect disabled.
The surround effect is generated from stereo audio; it isn't a song's original surround mix. Its sound will vary between listeners, and quick head turns may change the tone of the music. The filters also add a small amount of delay.
Only stereo audio at 44.1 or 48 kHz is processed. Other formats pass through unchanged. Multiplayer, 90°/360° maps, and compatibility with other audio mods still need testing.
The spatial audio uses KEMAR measurements by Bill Gardner and Keith Martin, MIT Media Laboratory (1994). See the data attribution and usage terms.
The bundled filters are generated from those measurements. To regenerate them,
run python scripts/generate_hrtf.py.