diff options
author | Chun-Min Chang <[email protected]> | 2022-03-23 09:16:54 -0700 |
---|---|---|
committer | Chun-Min Chang <[email protected]> | 2022-03-23 09:21:42 -0700 |
commit | 4bca265fdcbff5b4b2baef922164e0d4c6f6511d (patch) | |
tree | 19f68d0bc36414eb99b53f7435ecb3cc68bee993 | |
parent | 2d64fff58ecf931b58e472e489f3f0ba96f28bdd (diff) | |
download | cubeb-4bca265fdcbff5b4b2baef922164e0d4c6f6511d.tar.gz cubeb-4bca265fdcbff5b4b2baef922164e0d4c6f6511d.zip |
Make sure input latency is larger than zero
-rw-r--r-- | src/cubeb_wasapi.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cubeb_wasapi.cpp b/src/cubeb_wasapi.cpp index bec275f..2fbbf47 100644 --- a/src/cubeb_wasapi.cpp +++ b/src/cubeb_wasapi.cpp @@ -2238,6 +2238,7 @@ setup_wasapi_stream_one_side(cubeb_stream * stm, stm->device_enumerator.get(), device.get(), &default_devices) == CUBEB_OK) { // This multiplicator has been found empirically. + XASSERT(device_info.latency_hi > 0); uint32_t latency_frames = device_info.latency_hi * 8; LOG("Input: latency increased to %u frames from a default of %u", latency_frames, device_info.latency_hi); |