diff options
author | JP Cimalando <jpcima@users.noreply.github.com> | 2019-02-26 20:06:57 +0100 |
---|---|---|
committer | JP Cimalando <jpcima@users.noreply.github.com> | 2019-02-26 20:06:57 +0100 |
commit | c70b39065b1bf5b8b39bc104b351512203847d8b (patch) | |
tree | d0b146aff7aa8b837a43dd419defe83b51f4f546 /src/chips | |
parent | 555840133a86e23df62b82a06c3142d658c04c1e (diff) | |
download | libADLMIDI-c70b39065b1bf5b8b39bc104b351512203847d8b.tar.gz libADLMIDI-c70b39065b1bf5b8b39bc104b351512203847d8b.tar.bz2 libADLMIDI-c70b39065b1bf5b8b39bc104b351512203847d8b.zip |
java: fix unreachable code false-positive (CID 1477236)
Diffstat (limited to 'src/chips')
-rw-r--r-- | src/chips/java/JavaOPL3.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chips/java/JavaOPL3.hpp b/src/chips/java/JavaOPL3.hpp index fa9c8d7..88d9ebe 100644 --- a/src/chips/java/JavaOPL3.hpp +++ b/src/chips/java/JavaOPL3.hpp @@ -1641,6 +1641,8 @@ double TopCymbalOperator::getOperatorOutput(OPL3 *OPL3, double modulator) { // Conversely, this method is also used through inheritance by the HighHatOperator, // now with the TopCymbalOperator phase as the externalPhase. double TopCymbalOperator::getOperatorOutput(OPL3 *OPL3, double modulator, double externalPhase) { + (void)modulator; + double envelopeInDB = envelopeGenerator.getEnvelope(OPL3, egt, am); envelope = EnvelopeFromDB(envelopeInDB); @@ -1661,8 +1663,6 @@ double TopCymbalOperator::getOperatorOutput(OPL3 *OPL3, double modulator, double if( chopped > 0.1) carrierOutput = 0; return carrierOutput*2; - - (void)modulator; } HighHatOperator::HighHatOperator() |