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]
This commit is contained in:
parent
a22acca119
commit
1e95311081
1 changed files with 6 additions and 0 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue