mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-25 16:21:08 +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,
|
OSStatus getPropertyError = AudioObjectGetPropertyData(kAudioObjectSystemObject,
|
||||||
&propertyAddress,
|
&propertyAddress,
|
||||||
0,
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
&propertySize,
|
&propertySize,
|
||||||
&defaultDeviceID);
|
&defaultDeviceID);
|
||||||
|
|
||||||
if (!getPropertyError && propertySize) {
|
if (!getPropertyError && propertySize) {
|
||||||
CFStringRef devName = NULL;
|
CFStringRef devName = NULL;
|
||||||
propertySize = sizeof(devName);
|
propertySize = sizeof(devName);
|
||||||
propertyAddress.mSelector = kAudioDevicePropertyDeviceNameCFString;
|
propertyAddress.mSelector = kAudioDevicePropertyDeviceNameCFString;
|
||||||
getPropertyError = AudioObjectGetPropertyData(defaultDeviceID, &propertyAddress, 0,
|
getPropertyError = AudioObjectGetPropertyData(defaultDeviceID, &propertyAddress, 0,
|
||||||
NULL, &propertySize, &devName);
|
NULL, &propertySize, &devName);
|
||||||
|
|
||||||
if (!getPropertyError && propertySize) {
|
if (!getPropertyError && propertySize) {
|
||||||
deviceName = CFStringGetCStringPtr(devName, kCFStringEncodingMacRoman);
|
deviceName = CFStringGetCStringPtr(devName, kCFStringEncodingMacRoman);
|
||||||
|
|
Loading…
Reference in a new issue