diff options
author | Matthew Gregan <[email protected]> | 2012-11-19 11:40:29 +1300 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2012-11-19 11:40:29 +1300 |
commit | 98769a7861b067125a76c97ddb51c5db8f528b75 (patch) | |
tree | 31200404f4e6b9ffac78e0769edda0df2d636160 | |
parent | 6e9ffc59202f95f09e5adb895d10eaedf36a6ea2 (diff) | |
download | cubeb-98769a7861b067125a76c97ddb51c5db8f528b75.tar.gz cubeb-98769a7861b067125a76c97ddb51c5db8f528b75.zip |
winmm: change priority of RDP and Vista latency kludges.
-rw-r--r-- | src/cubeb_winmm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cubeb_winmm.c b/src/cubeb_winmm.c index 245359c..0f7a37c 100644 --- a/src/cubeb_winmm.c +++ b/src/cubeb_winmm.c @@ -197,6 +197,11 @@ calculate_minimum_latency(void) OSVERSIONINFOEX osvi; DWORDLONG mask; + /* Running under Terminal Services results in underruns with low latency. */ + if (GetSystemMetrics(SM_REMOTESESSION) == TRUE) { + return 500; + } + /* Vista's WinMM implementation underruns when less than 200ms of audio is buffered. */ memset(&osvi, 0, sizeof(OSVERSIONINFOEX)); osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX); @@ -211,11 +216,6 @@ calculate_minimum_latency(void) return 200; } - /* Running under Terminal Services results in underruns with low latency. */ - if (GetSystemMetrics(SM_REMOTESESSION) == TRUE) { - return 500; - } - return 0; } |