Repository navigation
Audio portals - #27
Merged
Merged
Conversation
- rooms and portals share the new AudUnitBox class for their box
- a portal as deep as its wall could miss a room by a rounding error and connect to outdoors
- the copyright is now Fenris Creations ehf.
- restore the file banners, with the Fenris Creations copyright
ccp-zoetrope
requested changes
Oct 23, 2026
ccp-zoetrope
left a comment
Member
There was a problem hiding this comment.
The changes look mostly good! My biggest concern is that the portal sync logic in SyncPortalLocked has no tests. There are a lot of parameters to keep track of, and logic that's hard to follow and easy to forget when we come back to it. I'd like to see tests that cover at least:
- a portal across a room wall gets the right front and back rooms
- a portal with the same room on both sides isn't sent to Wwise
- new rooms only replace the old ones after 3 updates in a row (this one in particular is odd and easy to forget without a test)
If you add tests for these and address the other comments, this is good to go.
ccp-zoetrope
approved these changes
Oct 26, 2026
ccp-zoetrope
left a comment
Member
There was a problem hiding this comment.
This looks good after your latest changes!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds Wwise Spatial Audio portals.
AudPortalwrapsAK::SpatialAudio::SetPortaland is placed throughITr2BoxVolume, the same way asAudRoom, so trinity and the API need no changes. Rooms without portals are sealed; portals connect them, e.g. a door between two rooms.Related PRs:
carbonengine/trinity#119
Changes
AudPortal, sent to Wwise byAudRoomManagerSetPortalObstructionAndOcclusion) and adjacent room bleedAudUnitBox, the box handling now shared by rooms and portalsTesting
audiolab.mp4