We have just released Steam Audio 2.0-beta.7, and it brings a major change to the Steam Audio plugin for Unity. From here on out, Steam Audio will use the native audio plugin framework for Unity, which allows for tighter integration with the complete feature set of Unity's audio engine, and a simplified, consistent workflow for users.
Because of the far-reaching nature of this update, you will have to reintegrate Steam Audio into existing Unity projects that use Steam Audio beta 6 or earlier. In most cases, this should be a straightforward process, which brings with it several benefits.
Audio Mixer Plugins
One of the main advantages of Unity's native audio plugin framework is that it allows the creation of mixer plugins. These are effects that can be applied to audio flowing through any given Mixer Group node in a scene's Audio Mixer graph.
This lets you efficiently apply Steam Audio effects to a group of sounds; for example, you can use the Steam Audio Reverb effect to apply physics-based reverb to all sounds that mix into the Mixer Group called Reverb:
This was not possible using Steam Audio beta 6 or older, due to the limitations of the legacy audio plugin framework.
Wet Mixing
Unity lets you enable wet mixing on any audio effect attached to a Mixer Group. This lets you control how much of the dry (unmodified) signal is mixed with the wet (modified) signal when generating the audio effect's output.
For example, with Steam Audio Reverb, you can enable wet mixing to control how much physics-based reverb is applied:
Performance
Unity's native audio plugin framework is implemented in native C++ code, which results in lower CPU usage than the legacy audio plugin framework, which was written in C#. The legacy audio plugins had to marshal audio data between managed .NET code and unmanaged native code, which resulted in a surprisingly high performance overhead. By switching Steam Audio to the native audio plugin framework, we have eliminated this performance hit.
Ease of Use
Finally, using the native audio plugin framework means that if you just want HRTF-based 3D audio, all you have to do is set Steam Audio as the spatializer plugin in your project, select a bunch of Audio Sources, and check Spatialize. That's it: no components to attach, no settings to configure.
Of course, if you want to use the advanced features of Steam Audio, like occlusion, transmission, indirect sound, or baking, those remain easy to set up too: just attach the necessary Steam Audio components.
As the Unity team continues to improve their audio engine, the migration to the native audio plugin framework will allow Steam Audio to make use of the latest audio features added to Unity.
And, as always, let us know in the forums or on GitHub if you run into any issues when using Steam Audio beta 7.
