AudioObjectGetPropertyData uses CFStringRef instead of raw char buffer. This patch fixes it.
I would also add some error checking to the code, but I wanted to keep the changes minimal.
This was discovered and tested only on macOS 13.3.1 (22E261). I don't have any other system versions to test on. And documentation for this CoreAudio function is pretty vague...
AudioObjectGetPropertyData uses CFStringRef instead of raw char buffer. This patch fixes it. I would also add some error checking to the code, but I wanted to keep the changes minimal.