
Implementing a Dynamic Compressor
Background As part of my hobby game engine " lacking ", I am implementing an audio mixer in Go for native builds. It is based on miniaudio but uses its own node-based mixing logic. In many ways, I am trying to keep the API and behavior as close as possible to the Web Audio API, since my engine supports WebAssembly builds where Web Audio API is already internally used. While most Node types have proven intuitive to implement and/or there are sufficient resources online, the Dynamic Compressor node turned out elusive. Unfortunately, the Web Audio API specification provides limited information on the matter: https://webaudio.github.io/web-audio-api/#DynamicsCompressorOptions-processing The goal of this article is to share what I have learned in the process and hopefully help someone else that might be stumbling with the same stuff. That said, keep in mind that I’m a complete beginner in the audio processing space, so take this article with a grain of salt. Side note: Using AI can get you
Continue reading on Dev.to
Opens in a new tab

