How barralutz/spatial-audio-lab works
SpatialAudioLab is a Windows spatial-audio platform: users configure speaker layouts and endpoint routes in Studio, then run a live MAT, DTS:X, or PCM bridge; Cinema prepares the PCM bridge and plays E-AC-3 JOC or TrueHD Atmos media. The graph keeps capture, routing/rendering, profile management, Studio, and Cinema distinct. README statements support the overall product flow; source excerpts and the index support selected internal calls. Several CLI and renderer implementations were not sampled, so their internal links are omitted where evidence is insufficient.
Main entry points: PlayerCoordinator.cs Cinema coordinator · mat_pipeline.cpp MAT pipeline · pcm_pipeline.cpp PCM pipeline · MainWindow.xaml.cs Studio UI
Components 28
Studio and Profiles
- Studio UI
tools/SpeakerLayoutEditor/MainWindow.xaml.cs - Endpoint query
tools/SpeakerLayoutEditor/Services/EndpointQuery.cs - Profile repository
tools/SpatialAudioLab.Core/Profiles/ProfileRepository.cs - Profile serializer
tools/SpatialAudioLab.Core/Profiles/ProfileIniSerializer.cs - Profile model
tools/SpatialAudioLab.Core/Profiles/ProfileDocument.cs - Bridge process service
tools/SpeakerLayoutEditor/Services/BridgeProcessService.cs - Runtime paths
tools/SpatialAudioLab.Core/Runtime/RuntimePaths.cs
Capture and Routing
- Virtual sink
- Capture ring
- CLI router
src/media_foundation_probe.cpp - MAT capture client
src/mat_capture_client.cpp - MAT pipeline
src/mat_pipeline.cpp - PCM pipeline
src/pcm_pipeline.cpp
Audio Engine
- Speaker layout
src/speaker_layout.cpp - Layout mixing
src/layout_mix.cpp - Multi-endpoint renderer
src/multi_endpoint_renderer.cpp - Bridge meters
src/bridge_meter.cpp
Cinema Playback
- Cinema coordinator
tools/DolbyPlayer/PlayerCoordinator.cs - Media probe
tools/DolbyPlayer/MediaProbe.cs - E-AC-3 JOC decoder
tools/DolbyPlayer/Eac3JocDecodePipeline.cs - TrueHD decoder
tools/DolbyPlayer/TrueHdStreamDecodePipeline.cs - PCM 7.1.4 buffer
tools/DolbyPlayer/Pcm714Buffer.cs - PCM sink output
tools/DolbyPlayer/PcmSinkOutput714.cs - mpv playback
tools/DolbyPlayer/MpvController.cs
Other components
- Listener / operator
- Game audio
- Movie file
- WASAPI endpoints
Connections 33
- Listener / operator → Studio UI: configures
README.md - Game audio → Virtual sink: sends audio
README.md - Virtual sink → Capture ring: captures stream
README.md - Capture ring → CLI router: feeds router
README.md - CLI router → MAT pipeline: runs MAT mode
README.md - CLI router → PCM pipeline: runs PCM mode
README.md - MAT pipeline → MAT capture client: reads capture
src/mat_pipeline.cpp - MAT pipeline → Speaker layout: loads layout
src/mat_pipeline.cpp - MAT pipeline → Multi-endpoint renderer: renders audio
src/mat_pipeline.cpp - MAT pipeline → Bridge meters: publishes meters
src/mat_pipeline.cpp - PCM pipeline → Speaker layout: uses layout
src/pcm_pipeline.cpp - PCM pipeline → Layout mixing: mixes channels
src/pcm_pipeline.cpp - PCM pipeline → Multi-endpoint renderer: renders audio
src/pcm_pipeline.cpp - PCM pipeline → Bridge meters: publishes meters
src/pcm_pipeline.cpp - Multi-endpoint renderer → WASAPI endpoints: outputs audio
README.md - Studio UI → Endpoint query: queries endpoints
tools/SpeakerLayoutEditor/MainWindow.xaml.cs - Endpoint query → WASAPI endpoints: enumerates
README.md - Studio UI → Profile repository: manages profiles
tools/SpeakerLayoutEditor/MainWindow.xaml.cs - Profile repository → Profile serializer: loads and saves
tools/SpatialAudioLab.Core/Profiles/ProfileRepository.cs - Profile serializer → Profile model: serializes
tools/SpatialAudioLab.Core/Profiles/ProfileIniSerializer.cs - Studio UI → Bridge process service: starts bridge
tools/SpeakerLayoutEditor/MainWindow.xaml.cs - Bridge process service → CLI router: launches engine
README.md - Listener / operator → Cinema coordinator: selects media
README.md - Cinema coordinator → Media probe: probes media
tools/DolbyPlayer/PlayerCoordinator.cs - Cinema coordinator → E-AC-3 JOC decoder: decodes E-AC-3
tools/DolbyPlayer/PlayerCoordinator.cs - Cinema coordinator → TrueHD decoder: decodes TrueHD
tools/DolbyPlayer/PlayerCoordinator.cs - E-AC-3 JOC decoder → PCM 7.1.4 buffer: appends PCM
tools/DolbyPlayer/Eac3JocDecodePipeline.cs - TrueHD decoder → PCM 7.1.4 buffer: appends PCM
tools/DolbyPlayer/TrueHdStreamDecodePipeline.cs - Cinema coordinator → PCM sink output: prepares output
tools/DolbyPlayer/PlayerCoordinator.cs - PCM sink output → PCM 7.1.4 buffer: reads PCM
tools/DolbyPlayer/PcmSinkOutput714.cs - Cinema coordinator → mpv playback: controls playback
tools/DolbyPlayer/PlayerCoordinator.cs - Cinema coordinator → Runtime paths: resolves runtime
- Movie file → Cinema coordinator: provides source
README.md