diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-10-27 22:58:00 +0100 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-10-27 23:07:32 +0100 |
commit | 758341f6b30a51e28e3052a1a3f8850ddcf4ec20 (patch) | |
tree | ad709910a989b7ed5e89b257c2602faf89db47c6 /src/vinylcontrol | |
parent | c60e8e727dcbd878c8aea08240c7df7defec7c4e (diff) |
Use more comparisons instead of implicit casts to double
Diffstat (limited to 'src/vinylcontrol')
-rw-r--r-- | src/vinylcontrol/vinylcontrolprocessor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vinylcontrol/vinylcontrolprocessor.cpp b/src/vinylcontrol/vinylcontrolprocessor.cpp index 837f62ca1c..1fd8e6a202 100644 --- a/src/vinylcontrol/vinylcontrolprocessor.cpp +++ b/src/vinylcontrol/vinylcontrolprocessor.cpp @@ -239,8 +239,9 @@ void VinylControlProcessor::receiveBuffer(AudioInput input, } void VinylControlProcessor::toggleDeck(double value) { - if (!value) + if (value == 0) { return; + } /** few different cases here: * 1. No decks have vinyl control enabled. |