Core Audio Kit

RSS for tag

Add user interfaces to Cocoa audio units using Core Audio Kit.

Core Audio Kit Documentation

Posts under Core Audio Kit tag

11 Posts
Sort by:
Post not yet marked as solved
1 Replies
603 Views
Hello, I created a connection between my phone and my mac by Bluetooth with CABTMIDILocalPeripheralViewController . Now according to the documentation it is possible to send midi commands through this connection but I did not find anything about it.
Posted
by
Post not yet marked as solved
0 Replies
469 Views
Hi, I'm attempting to call audioComponentFindNext() from an iOS application (built with juce) to get a list of all available plugins. I've got an issue whereby the function is only returning the generic system plugins and missing any the 3rd party installed plugins. This issue is currently found when called from within another auv3 plugin though I have also seen it from within a normal iOS app. (Ran on iPad air 4), it the moment is working fine from an iOS app. I've tried setting microphone access and inter-app audio capabilities as I saw it suggested on similar forum posts though it has not solved my problem. Any advice would be very appreciated Thanks
Posted
by
Post not yet marked as solved
1 Replies
452 Views
Curious if there is a sound way for an AUv3 component to identify how many other instances of it that are running on a device. For instance, if GarageBand has 4 tracks and all of the tracks use the same AUv3 component, is there a sound way for each one to obtain a unique index value? Thanks!
Posted
by
Post not yet marked as solved
0 Replies
240 Views
Using let address = AudioObjectPropertyAddress(    mSelector:kAudioHardwareServiceDeviceProperty_VirtualMainVolume,    mScope: kAudioObjectPropertyScopeOutput,    mElement: kAudioObjectPropertyElementMaster   ) Using Xcode13.1, App freezes. Tips: Using Xcode12, mSelector using kAudioHardwareServiceDeviceProperty_VirtualMasterVolume is worked.
Posted
by
Post not yet marked as solved
0 Replies
268 Views
let volumePropertyAddress = AudioObjectPropertyAddress(         mSelector: kAudioHardwareServiceDeviceProperty_VirtualMainVolume,         mScope: kAudioDevicePropertyScopeOutput,         mElement: kAudioObjectPropertyElementMaster       )      let status = AudioObjectSetPropertyData(deviceId, &theAddress, 0, nil, size, &theValue) Then App freezes. Is it not possible to call the AudioObjectSetPropertyData method on the main thread
Posted
by
Post not yet marked as solved
0 Replies
277 Views
I know the VoiceProcessingIO audio unit will create a aggregate audio device. But there are error kAudioUnitErr_InvalidProperty (-10789) during getting kAudioOutputUnitProperty_OSWorkgroup property in recent macOS Monterey 12.2.1 or BigSur 11.6.4. os_workgroup_t workgroup = NULL; UInt32  sSize; OSStatus sStatus; sSize = sizeof(os_workgroup_t); sStatus = AudioUnitGetProperty(mAudioUnit, kAudioOutputUnitProperty_OSWorkgroup, kAudioUnitScope_Global, 1, &workgroup, &sSize); if (sStatus != noErr) { NSLog(@"Error %d", sStatus); } And the same code works fine on iOS 15.3.1 but not macOS. Have you any hint to resolve this issue?
Posted
by
Post not yet marked as solved
1 Replies
282 Views
I'm writing a macOS audio unit hosting app using the AVAudioUnit and AUAudioUnit APIs. I'm trying to use the NSView cacheDisplay(in:to:) function to capture an image of a plugin's view: func viewToImage(veiwToCapture: NSView) -> NSImage? {     var image: NSImage? = nil     if let rep = veiwToCapture.bitmapImageRepForCachingDisplay(in: veiwToCapture.bounds) {       veiwToCapture.cacheDisplay(in: veiwToCapture.bounds, to: rep)       image = NSImage(size: veiwToCapture.bounds.size)       image!.addRepresentation(rep)     }     return image   } } This works ok when a plugin is instantiated using the .loadInProcess option. If the plugin is instantiated using the .loadOutOfProcess option the resulting bitmapImageRep is blank. I'd much rather be loading plugins out-of-process for the enhanced stability. Is there any trick I'm missing to be able to capture the contents of the NSView from an out-of-process audio unit?
Posted
by
Post not yet marked as solved
1 Replies
220 Views
In our audio unit host, we're seeing the following error thrown when keypresses are dispatched to an audio unit view , does anyone know what it means and more importantly what might be causing it ? .... I can only guess that perhaps an object has been released or not retained properly somewhere but cannot find a solution. This is error message when caught in the debugger _Thread 1: "assertion failed: '<AUAudioUnitRemoteViewController: 0x600002b00c60> does not conform to AUAudioUnitViewControllerHostInterface' in -[NSRemoteView ensureClientExportedObject] on line 7080 of file /AppleInternal/Library/BuildRoots/66382bca-8bca-11ec-aade-6613bcf0e2ee/Library/Caches/com.apple.xbs/Sources/ViewBridge/NSRemoteView.m"
Posted
by
Post not yet marked as solved
1 Replies
246 Views
Hi, I need to develop a cross-plateform driver extension (similar to a Windows Audio Processing Object (APO)) for an Audio Device and I'm struggling with associating the driver to a USB Audio Device. I'm using the SimpleAudioDriver example and override the device_uid with the Product ID and the manufacturer_uid with the Vendor ID. As I understand it with this documentation : https://developer.apple.com/news/?id=zk5xdwbn it should associate my driver with the device but it creates a new device. If you have any hints, please get back to me. Thanks.
Posted
by
Post not yet marked as solved
0 Replies
128 Views
In the kernel extensions, there was setDeviceCanBeDefault() that I could hide and show audio devices. How I can achieve something similar in CoreAudio's HAL plugin? I want to hide and show my plugin, from sound devices, at runtime.
Posted
by