Route all spatializers to buses, add output synth
This MR makes a significant, but non-breaking, change to how spatializer audio is routed inside Satie.
Changes are:
- An audio Bus of the appropriate channel size is created for each
listeningFormmat
specified in the configuration. These buses are kept in theSatieConfiguration.spatBus
array (much like theambiBus
array). - The audio output of a spatializer is sent to its Bus, not directly to its corresponding
outBusIndex
. - Post-processors use the Bus of their spatializer for input/output. This is the same as before except for using the Bus rather than an
outBusIndex
channel. - A persistent
satieOutput
Synth is automatically created that takes eachspatBus
as input and outputs their signals to their correspondingoutBusIndex
. The Synth gets created immediately after Satie boots, and is recreated after Cmd-period.
Also, we now make use of ServerQuit
so that we call the appropriate code whenever Satie's server is quitting. This should have been done before, and now we do.
I've added a set of tests to make sure things happen as they should and signals get routed where they are configured to be routed. If you think of anything missing, please let me know.
Edited by Patrick Dupuis