Is it possible to pass a String to an AUAudioUnit as a parameter

157 Views Asked by At

I am currently working on a AUAudioUnit (AUv3) which requires to load a file located in the Host app's bundle.

This would need to pass the file path (ie: string value) to the Audio Unit as parameter, but I couldn't see how to do this with AUParameter since it seems to only supports Float values (AUValue).

Does anyone know if it's possible ? and how ?

Thanks a lot !

2

There are 2 best solutions below

1
mehdi On

For basic of working with audio engine start with WWDC videos like wwdc 502 For sample code, you can find it here at shlab

0
hotpaw2 On

An AUParameterGroups allows one to pass multiple parameters. And one can encode pretty much anything in a large enough array of values. A C string is just an array of bits.