- if (suggested != NULL)
- memcpy (suggested, requested, sizeof (suggested));
-
- // Get the device status and suggest any appropriate changes to format
- propertySize = sizeof(streamDesc);
- status = AudioDeviceGetProperty(outputDeviceID, 0, false, kAudioDevicePropertyStreamFormat, &propertySize, &streamDesc);
- if (status)
- {
- Con_Printf("CoreAudio: AudioDeviceGetProperty() returned %d when getting kAudioDevicePropertyStreamFormat\n", status);
- return false;
- }
- // Suggest proper settings if they differ
- if (requested->channels != streamDesc.mChannelsPerFrame || requested->speed != streamDesc.mSampleRate || requested->width != streamDesc.mBitsPerChannel/8)