mmserv/tms/tmsimpl/src/tmseffectimpl.cpp
changeset 14 80975da52420
parent 12 5a06f39ad45b
child 16 43d09473c595
equal deleted inserted replaced
12:5a06f39ad45b 14:80975da52420
    71     TMSEffectType effecttype;
    71     TMSEffectType effecttype;
    72     ret = tmseffect->GetType(effecttype);
    72     ret = tmseffect->GetType(effecttype);
    73     switch (effecttype)
    73     switch (effecttype)
    74         {
    74         {
    75         case TMS_EFFECT_VOLUME:
    75         case TMS_EFFECT_VOLUME:
    76             delete (TMSVolumeEffectImpl*) (tmseffect);
    76             delete (static_cast<TMSVolumeEffectImpl*>(tmseffect));
    77             tmseffect = NULL;
    77             tmseffect = NULL;
    78             break;
    78             break;
    79         case TMS_EFFECT_GAIN:
    79         case TMS_EFFECT_GAIN:
    80             delete (TMSGainEffectImpl*) (tmseffect);
    80             delete (static_cast<TMSGainEffectImpl*>(tmseffect));
    81             tmseffect = NULL;
    81             tmseffect = NULL;
    82             break;
    82             break;
    83         case TMS_EFFECT_GLOBAL_VOL:
    83         case TMS_EFFECT_GLOBAL_VOL:
    84             delete (TMSGlobalVolEffectImpl*) (tmseffect);
    84             delete (static_cast<TMSGlobalVolEffectImpl*>(tmseffect));
    85             tmseffect = NULL;
    85             tmseffect = NULL;
    86             break;
    86             break;
    87         case TMS_EFFECT_GLOBAL_GAIN:
    87         case TMS_EFFECT_GLOBAL_GAIN:
    88             delete (TMSGlobalGainEffectImpl*) (tmseffect);
    88             delete (static_cast<TMSGlobalGainEffectImpl*>(tmseffect));
    89             tmseffect = NULL;
    89             tmseffect = NULL;
    90             break;
    90             break;
    91         default:
    91         default:
    92             ret = TMS_RESULT_EFFECT_TYPE_NOT_SUPPORTED;
    92             ret = TMS_RESULT_EFFECT_TYPE_NOT_SUPPORTED;
    93             break;
    93             break;