CoreAudioInternal::getBitDepthFromDevice fails with an error on my MacBook Air, even with the built in audio device.
The error is 77686f3f which actually is 'who?' which in turn means kAudioHardwareUnknownPropertyError.
It seems getting kAudioStreamPropertyPhysicalFormat of kAudioObjectPropertyElementMaster is not possible? Is there an alternative way? Or can one check if a property exists before trying to get it?
On a different note, you may want to change the error message returned in the CoreAudioInternet::OK to the following to get these 4 digit error codes that are used in CoreAudio:
String errorMessage; errorMessage << "CoreAudio error: " << String::toHexString ((int) errorCode) << " ('"; int i=3; while( i >= 0 ) errorMessage << *(((char*)&errorCode)+i--); errorMessage << "')";