diff options
author | Owen Williams <owilliams@mixxx.org> | 2013-12-20 08:11:37 -0500 |
---|---|---|
committer | Owen Williams <owilliams@mixxx.org> | 2013-12-20 23:32:13 -0500 |
commit | 73d56c141bdbea8935f8adbb2060d9617141174b (patch) | |
tree | 9fbbb206de8a42b13e45c6f920548b4ab702afe6 /src/vinylcontrol/vinylcontrolxwax.cpp | |
parent | 18b314a6221c0629f5807552e0e03488be573e59 (diff) |
Check latency value more closely
Diffstat (limited to 'src/vinylcontrol/vinylcontrolxwax.cpp')
-rw-r--r-- | src/vinylcontrol/vinylcontrolxwax.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vinylcontrol/vinylcontrolxwax.cpp b/src/vinylcontrol/vinylcontrolxwax.cpp index 4af20cb99b..2a8bbfd57f 100644 --- a/src/vinylcontrol/vinylcontrolxwax.cpp +++ b/src/vinylcontrol/vinylcontrolxwax.cpp @@ -109,8 +109,8 @@ VinylControlXwax::VinylControlXwax(ConfigObject<ConfigValue> * pConfig, QString double latency = ControlObject::getControl( ConfigKey("[Master]", "latency"))->get(); - if (latency == 0) { - qDebug() << "Failed to get master latency, assuming 20 as a reasonable value"; + if (latency <= 0 || latency > 200) { + qDebug() << "Failed to get sane latency, assuming 20 as a reasonable value"; latency = 20; } // Set pitch ring size to 1/4 of one revolution -- a full revolution adds too much stickiness |