Search guides and the APICtrl K
  1. API reference
  2. Formats and wrappers

au_view.h

The Audio Unit editor.

#include <sonore/au_view.h>
On this page

Design notes

Compiled on macOS since 2026-09-01 (the SDK workflow builds it beside the AU), but never OPENED: auval validates the unit and does not instantiate its CocoaUI, and no macOS test attaches an editor yet. Treat the view as unrun until a host on a Mac has shown it.

An AU host asks for kAudioUnitProperty_CocoaUI, gets the NAME of an Objective-C class, instantiates it, and calls uiViewForAudioUnit:withSize: expecting an NSView back. There is no such class in any framework, so one is REGISTERED AT RUNTIME here, the same technique webview_cocoa.h uses for its script-message handler, and the reason this SDK needs no .mm file anywhere.

The view it returns is the same WKWebView every other format shows, wired to the same window.sonore bridge.

Types 1

Registered from a static initialiser, so the class exists before any host can ask for it: a lazily-registered class loses the race with a fast host.

Functions 5

↑↓ to move↵ to openEvery public name in the headers, and every guide