3

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 !

Matth
  • 51
  • 4

2 Answers2

0

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

mehdi
  • 2,703
  • 1
  • 13
  • 15
  • Thanks @mehdi, but it doesn't really answer to my question regarding `AUAudioUnit` parameter allowed types – Matth Feb 22 '22 at 09:47
0

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.

hotpaw2
  • 70,107
  • 14
  • 90
  • 153