<!--
{
  "availability" : [
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAudioKit",
  "identifier" : "/documentation/CoreAudioKit/AUGenericView/init(audioUnit:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "CoreAudioKit"
    ],
    "preciseIdentifier" : "c:objc(cs)AUGenericView(im)initWithAudioUnit:"
  },
  "title" : "init(audioUnit:)"
}
-->

# init(audioUnit:)

Creates a generic view for an audio unit, setting all display flags.

```
init(audioUnit au: AudioUnit)
```

## Parameters

`au`

The audio unit associated with the generic view.

## Return Value

The initialized generic view. On error, returns `nil`.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)