Thanks, Matt
Unfortunately this does not work. Since the line creates an explicitly unwrapped optional containing nil, AudioUnitGetProperty fails at runtime, just as passing in nil directly would (if the compiler would allow it):
fatal error: unexpectedly found nil while unwrapping an Optional value
For what it’s worth I am currently querying the maximum property size using AudioUnitGetPropertyInfo, then getting the property data using AudioUnitGetProperty and finally slicing off the portion of relevant data reported by the ioDataSize out value.
Benjamin
Am 19.10.2016 um 15:21 schrieb Matt Grippaldi < email@hidden>:
Try this…
let nullPtr:UnsafeMutableRawPointer! = nil
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
|