[DivaSound] Expose period size instead of buffer size (not backwards-compatible)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user