How to build an Audio compressor with SPDIF (Toslink) Input / Output #2015
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If you are ok with mono 16bits you can use the Compressor provided by the AudioEffects: if you have a stereo imput it mixes the input into mono and just provides 2 identical mono outputs. You could also try to implement your own logic chaining a VolumeMeter and VolumeStream and updating the volume based on what's provided by the meter. |
Beta Was this translation helpful? Give feedback.
If you are ok with mono 16bits you can use the Compressor provided by the AudioEffects: if you have a stereo imput it mixes the input into mono and just provides 2 identical mono outputs.
If you want something else, I suggest that you implement your own Stereo Compressor Stream class: you can use the exististing implementation as starting point, just using a separate Compressor for each channel.
You could also try to implement your own logic chaining a VolumeMeter and VolumeStream and updating the volume based on what's provided by the meter.