AUParameter with string value?

I'm trying to figure out how to create an AUParameter that stores a string as its value, rather than a number.


For example, if I wanted to store the name of a sample as a parameter.

AUValue appears to always be a float, so what would be the proper way to do this?


Thanks in advance for any help!

Replies

Perhaps kAudioUnitParameterUnit_CustomUnit would do the trick?

I think you want kAudioUnitParameterUnit_Indexed and need to provide valueStrings: array.