mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 17:04:10 +02:00
fixed mac param spacing
This commit is contained in:
parent
397586bd19
commit
8dc13ec242
1 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue