Skip to content

Super Audio Upgrade!#928

Merged
bjornbytes merged 57 commits intodevfrom
phonon-v4
Mar 1, 2026
Merged

Super Audio Upgrade!#928
bjornbytes merged 57 commits intodevfrom
phonon-v4

Conversation

@bjornbytes
Copy link
Owner

@bjornbytes bjornbytes commented Feb 5, 2026

Summary of changes:

  • Enables Steam Audio by default in all LÖVR builds!
  • Upgrades Steam Audio from version 2 to version 4.8 (Upgrade phonon to v4 #474)
  • Add a new AudioMesh object, with dynamic transform (Add dynamic audio geometry support #866, lovr.audio.setGeometry with phonon is kinda slow #406)
  • Audio meshes can have per-triangle audio materials (Per-triangle AudioMaterials #409).
  • Adds lovr.audio.setHRTF to enable a custom HRTF. Binaural spatialization will only work if an HRTF has been set, otherwise the spatializer will fall back to simple panning.
  • Most changes to sources are queued up and committed when lovr.audio.update is called (lovr.run does it for you after lovr.update) (Atomic Audio Functions #892).
  • Add t.audio.debug to get log messages from Steam Audio and miniaudio.
  • Audio thread is lock-free, less risk of stalling/underruns
  • Lots of extra conf.lua options to customize reverb
  • Heavy reverb computation is performed on a background thread asynchronously.
  • Replace Source:setEffectEnabled with individual setters, that allow extra customization:
    • Source:setAbsorption -- sources can have custom air absorption coefficients
    • Source:setCone -- uses more intuitive angle cone, replaces setDirectivity
    • Source:setFalloff -- has configurable min distance and volume limit
    • Source:setOcclusion -- can configure number of rays used for occlusion/transmission
    • Source:setReverb -- can set reverb volume and choose listener-centric vs. source-centric reverb mode
    • Source:setSpatialization -- can blend between spatialized and non-spatialized audio

TODO:

  • Add support for ambisonic sound playback with binaural spatialization and rotation

@bjornbytes bjornbytes force-pushed the phonon-v4 branch 2 times, most recently from 9566806 to e2e7d25 Compare February 15, 2026 02:41
@bjornbytes bjornbytes marked this pull request as ready for review February 22, 2026 09:54
@bjornbytes bjornbytes changed the title Audio Spatializer Improvements Super Audio Upgrade! Feb 23, 2026
@jeveloper
Copy link

@bjornbytes Bjorn, as a sound designer/artist/long time coder , I am applauding for your hard work and I would like to work on using your audio system in the 2026 release and write a few articles about it along the way.

@bjornbytes bjornbytes merged commit 0c3b535 into dev Mar 1, 2026
12 checks passed
@bjornbytes bjornbytes deleted the phonon-v4 branch March 1, 2026 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants