Skip to content

Commit

Permalink
Fix missing breaks in a switch statement in SiONVoice
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriSizov committed Jul 5, 2024
1 parent a4f60c5 commit b56ec7a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sion_voice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,25 @@ String SiONVoice::get_mml(int p_index, SiONChipType p_chip_type, bool p_append_p
switch (type) {
case SiONChipType::CHIP_SIOPM:
mml = "#@" + itos(p_index) + TranslatorUtil::get_params_as_mml(channel_params, " ", "\n", _name);
break;
case SiONChipType::CHIP_OPL:
mml = "#OPL@" + itos(p_index) + TranslatorUtil::get_opl_params_as_mml(channel_params, " ", "\n", _name);
break;
case SiONChipType::CHIP_OPM:
mml = "#OPM@" + itos(p_index) + TranslatorUtil::get_opm_params_as_mml(channel_params, " ", "\n", _name);
break;
case SiONChipType::CHIP_OPN:
mml = "#OPN@" + itos(p_index) + TranslatorUtil::get_opn_params_as_mml(channel_params, " ", "\n", _name);
break;
case SiONChipType::CHIP_OPX:
mml = "#OPX@" + itos(p_index) + TranslatorUtil::get_opx_params_as_mml(channel_params, " ", "\n", _name);
break;
case SiONChipType::CHIP_MA3:
mml = "#MA@" + itos(p_index) + TranslatorUtil::get_ma3_params_as_mml(channel_params, " ", "\n", _name);
break;
case SiONChipType::CHIP_ANALOG_LIKE:
mml = "#AL@" + itos(p_index) + TranslatorUtil::get_al_params_as_mml(channel_params, " ", "\n", _name);
break;
default:
ERR_FAIL_V_MSG("", vformat("SiONVoice: Chip type %d is unsupported for MML strings.", type));
}
Expand Down

0 comments on commit b56ec7a

Please sign in to comment.