Post not yet marked as solved
AVAudioUnitTimePitch.latency is 0.09s on my debug devices.
It will have a little time delay during render audio using `AVAudioEngine.
I just want to change the pitch during playing audio.
So how can I avoid this this latency??
Post not yet marked as solved
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!
Post not yet marked as solved
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.
Post not yet marked as solved
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.
Post not yet marked as solved
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?
Post not yet marked as solved
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"
Post not yet marked as solved
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?
Post not yet marked as solved
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
Post not yet marked as solved
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.
Post not yet marked as solved
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
Post not yet marked as solved
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.