From 1e95311081956669e3a84bde0a3b7849b4072849 Mon Sep 17 00:00:00 2001 From: Patryk Obara Date: Fri, 8 Nov 2019 11:38:50 +0100 Subject: [PATCH] Add cases for missing SynthMode enumerations Silence compiler warnings: enumeration value 'sm2Percussion' not handled in switch [-Wswitch] enumeration value 'sm3Percussion' not handled in switch [-Wswitch] --- src/hardware/dbopl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hardware/dbopl.cpp b/src/hardware/dbopl.cpp index 26f4f234..b4cd183c 100644 --- a/src/hardware/dbopl.cpp +++ b/src/hardware/dbopl.cpp @@ -883,6 +883,9 @@ Channel* Channel::BlockTemplate( Chip* chip, Bit32u samples, Bit32s* output ) { return (this + 2); } break; + case sm2Percussion: + case sm3Percussion: + break; } //Init the operators with the the current vibrato and tremolo values Op( 0 )->Prepare( chip ); @@ -948,6 +951,9 @@ Channel* Channel::BlockTemplate( Chip* chip, Bit32u samples, Bit32s* output ) { output[ i * 2 + 0 ] += sample & maskLeft; output[ i * 2 + 1 ] += sample & maskRight; break; + case sm2Percussion: + case sm3Percussion: + break; } } switch( mode ) {