CoreAudioInternal::getBitDepthFromDevice errors

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 << "')";

Hi me too

JUCE v4.3.1
CoreAudio: CoreAudio error: 77686f3f
CoreAudio: CoreAudio error: 77686f3f
CoreAudio: Opened: Built-in Output
CoreAudio: Latencies: 0 773

Model Name: MacBook Pro
Model Identifier: MacBookPro13,3
Processor Name: Intel Core i7
Processor Speed: 2.6 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 6 MB
Memory: 16 GB
Boot ROM Version: MBP133.0226.B11
SMC Version (system): 2.38f6

Funny, noticing this locally, too!