Help for a plugin audio unit

Hello All, It seems that it's "very easy" (😬) to implement a little Swift code inside the prepared AU using Xcode 16.2 on Sequoia 15.1.1 and a Mac Studio M1 Ultra, but my issue is that I finally don't know... where. The documentation says that I've to find the AudioUnitViewController.swift file and then modify the render block : audioUnit.renderBlock = { (numFrames, ioData) in // Process audio here } in the Xcode project automatically generated, but I didn't find such a file... If somebody can help me in showing where is the file to be modified, I'll be very grateful ! Thank you very much. J

Hello @OndesX, thank you for your post. In the Creating Custom Audio Effects sample code project, you will find the main plug-in view declared in Shared > Support > User Interface > FilterView.swift. It's a SwiftUI View implementation.

The internalRenderBlock is implemented in Shared > AudioUnit > Support > FilterDSPKernelAdapter.mm. Please note that audio processing within the internalRenderBlock must occur in a real-time safe context to ensure glitch-free performance. Don't allocate memory, perform file I/O, take locks, or interact with the Swift or Objective-C runtimes when rendering audio in a real-time safe context.

Help for a plugin audio unit
 
 
Q