fixed mac param spacing

This commit is contained in:
amerhifi 2019-10-25 16:01:24 -07:00
parent 397586bd19
commit 8dc13ec242

View file

@ -542,18 +542,18 @@ QString defaultAudioDeviceName(QAudio::Mode mode) {
OSStatus getPropertyError = AudioObjectGetPropertyData(kAudioObjectSystemObject,
&propertyAddress,
0,
NULL,
&propertySize,
&defaultDeviceID);
&propertyAddress,
0,
NULL,
&propertySize,
&defaultDeviceID);
if (!getPropertyError && propertySize) {
CFStringRef devName = NULL;
propertySize = sizeof(devName);
propertyAddress.mSelector = kAudioDevicePropertyDeviceNameCFString;
getPropertyError = AudioObjectGetPropertyData(defaultDeviceID, &propertyAddress, 0,
NULL, &propertySize, &devName);
NULL, &propertySize, &devName);
if (!getPropertyError && propertySize) {
deviceName = CFStringGetCStringPtr(devName, kCFStringEncodingMacRoman);