Hysen Labs
Open-source project
keijiro/MinimumAudioPlugin avatar
keijiro

MinimumAudioPlugin

Minimum implementation of a native audio plugin for Unity

50 stars11 forksC++License varies
01
DEEP OPEN-SOURCE ANALYSIS

MinimumAudioPlugin: the smallest Unity audio plugin

A minimal C++ native audio plugin for Unity that exists mainly to teach the baseline, plus the naming convention that decides whether Unity will load it at all.

02
DEEP OPEN-SOURCE ANALYSIS

Deliberately small

MinimumAudioPlugin is an example showing the minimum implementation of a native audio plugin for Unity, written in C++. The README is upfront that it helps you grasp the basic idea of Unity's native audio plugin but does not go deeper, and it points to the official examples repository on BitBucket for the more detailed material. That division of labor is the point: the example gives you the skeleton, and the official repo fills in the rest.

03
DEEP OPEN-SOURCE ANALYSIS

The one pitfall

While implementing a native audio plugin is described as pretty straightforward, the README flags one common trap: the plugin's DLL should be prefixed with audioplugin, matched case insensitively, so the system detects it and adds it to the list of plugins loaded automatically at startup. Get that wrong and Unity never sees the effect, even if the plugin code itself is correct. The naming convention is the kind of detail that costs an hour when nobody mentions it.

04
DEEP OPEN-SOURCE ANALYSIS

The troubleshooting tip

If a plugin never shows up in the audio effect drop-down list, the README's advice is to check the filename against that convention. For such a small example, that single naming rule is probably the most useful thing anyone takes away. The rest of the README just points at Unity's manual page for native audio plugins and at the official examples, which keeps the scope honest: a starting point, not a reference.

05
DEEP OPEN-SOURCE ANALYSIS

Editorial conclusion

The example stays deliberately minimal, and its real contribution is pointing out the audioplugin filename convention that gets a native effect recognized by Unity.

06
DEEP OPEN-SOURCE ANALYSIS

Official sources

07
Community notes

Community notes