-
-
Notifications
You must be signed in to change notification settings - Fork 288
Splitting and Merging Audio
Phil Schatzmann edited this page Jul 16, 2022
·
34 revisions
Instead of copying the audio to a single destination you can use the MultiOutput class and add multiple final output classes to it: e.g. a I2SStream and the VolumePrint class which measures the volume.
Here is an example with 2 outputs. Alternatively or if you have more then 2 outputs you need to define them by calling the add method.
You can use the Mixer class to merge multiple inputs into one Output. Just add the Sources that need to be mixed to the Mixer and use it as copy source. Note that this is however only working if the basic audio information is the same across all inputs:
- number of channels
- bits per sample
- sample rate