mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 01:04:02 +02:00
WASAPI: Only enable SRC_DEFAULT_QUALITY with AUTOCONVERTPCM.
This commit is contained in:
+1
-1
@@ -7875,7 +7875,7 @@ ma_result ma_device_init_internal__wasapi(ma_context* pContext, ma_device_type d
|
|||||||
if (!pData->noAutoConvertSRC && !pData->usingDefaultSampleRate) {
|
if (!pData->noAutoConvertSRC && !pData->usingDefaultSampleRate) {
|
||||||
streamFlags |= MA_AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM;
|
streamFlags |= MA_AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM;
|
||||||
}
|
}
|
||||||
if (!pData->noDefaultQualitySRC && !pData->usingDefaultSampleRate) {
|
if (!pData->noDefaultQualitySRC && !pData->noAutoConvertSRC && !pData->usingDefaultSampleRate) {
|
||||||
streamFlags |= MA_AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY;
|
streamFlags |= MA_AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY;
|
||||||
}
|
}
|
||||||
if (deviceType == ma_device_type_loopback) {
|
if (deviceType == ma_device_type_loopback) {
|
||||||
|
|||||||
Reference in New Issue
Block a user