From c2fd23c983599109a45bd7deda3414fcb3988b89 Mon Sep 17 00:00:00 2001 From: "morlad (iLeitgeb)" Date: Tue, 16 Feb 2021 12:24:02 +0000 Subject: [PATCH] Fix CoreAudio's performanceProfile for playback not being set --- miniaudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index fb666587..b1798ed4 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -26653,7 +26653,7 @@ static ma_result ma_device_init__coreaudio(ma_device* pDevice, const ma_device_c data.sampleRateIn = pDescriptorPlayback->sampleRate; MA_COPY_MEMORY(data.channelMapIn, pDescriptorPlayback->channelMap, sizeof(pDescriptorPlayback->channelMap)); data.shareMode = pDescriptorPlayback->shareMode; - data.shareMode = pDescriptorPlayback->shareMode; + data.performanceProfile = pConfig->performanceProfile; /* In full-duplex mode we want the playback buffer to be the same size as the capture buffer. */ if (pConfig->deviceType == ma_device_type_duplex) {