[DivaSound] Expose period size instead of buffer size (not backwards-compatible)

This commit is contained in:
nastys
2021-09-01 00:00:56 +02:00
parent e55c47abe4
commit 76e11cb465
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -473,11 +473,11 @@ char divasound_template[] =
"Alternate_Init=1\n"
"\n"
"[Buffer]\n"
"# Sets the requested buffer size in milliseconds.\n"
"# Sets the requested period size in milliseconds.\n"
"# Try increasing this if audio stutters or desyncs.\n"
"# WASAPI will usually provide a larger buffer than specified.\n"
"# You can check the actual buffer size by enabling debug_component.\n"
"Buffer_Size=10\n"
"# WASAPI will usually provide a larger period than specified.\n"
"# You can check the actual period size by enabling debug_component.\n"
"Period_Size=10\n"
"\n"
"# Sets how many periods to use.\n"
"# Fewer periods = lower latency, but it may cause issues.\n"
@@ -339,7 +339,7 @@ void loadConfig()
if (bitDepth != 32 && bitDepth != 24) bitDepth = 16;
requestBuffer = GetPrivateProfileIntW(L"buffer", L"buffer_size", 10, CONFIG_FILE);
requestBuffer = GetPrivateProfileIntW(L"buffer", L"period_size", 10, CONFIG_FILE);
if (requestBuffer < 0) requestBuffer = 0;