qtms/src/qtmsgaineffect.cpp
changeset 51 e61a04404bdf
parent 27 cbb1bfb7ebfb
equal deleted inserted replaced
44:d141fc1ad77b 51:e61a04404bdf
    23 using namespace QTMS;
    23 using namespace QTMS;
    24 using namespace TMS;
    24 using namespace TMS;
    25 
    25 
    26 QTMSGainEffect::QTMSGainEffect() :
    26 QTMSGainEffect::QTMSGainEffect() :
    27     iEffect(NULL)
    27     iEffect(NULL)
    28     {
    28 {
    29     }
    29 }
    30 
    30 
    31 QTMSGainEffect::~QTMSGainEffect()
    31 QTMSGainEffect::~QTMSGainEffect()
    32     {
    32 {
    33     delete iEffect;
    33     delete iEffect;
    34     }
    34 }
    35 
    35 
    36 gint QTMSGainEffect::GetLevel(guint& level)
    36 gint QTMSGainEffect::GetLevel(guint& level)
    37     {
    37 {
    38     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    38     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    39     if (iEffect)
    39     if (iEffect) {
    40         {
       
    41         status = static_cast<TMSGainEffect*> (iEffect)->GetLevel(level);
    40         status = static_cast<TMSGainEffect*> (iEffect)->GetLevel(level);
    42         }
    41     }
    43     return status;
    42     return status;
    44     }
    43 }
    45 
    44 
    46 gint QTMSGainEffect::SetLevel(const guint level)
    45 gint QTMSGainEffect::SetLevel(const guint level)
    47     {
    46 {
    48     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    47     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    49     if (iEffect)
    48     if (iEffect) {
    50         {
       
    51         status = static_cast<TMSGainEffect*> (iEffect)->SetLevel(level);
    49         status = static_cast<TMSGainEffect*> (iEffect)->SetLevel(level);
    52         }
    50     }
    53     return status;
    51     return status;
    54     }
    52 }
    55 
    53 
    56 gint QTMSGainEffect::GetMaxLevel(guint& level)
    54 gint QTMSGainEffect::GetMaxLevel(guint& level)
    57     {
    55 {
    58     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    56     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    59     if (iEffect)
    57     if (iEffect) {
    60         {
       
    61         status = static_cast<TMSGainEffect*> (iEffect)->GetMaxLevel(level);
    58         status = static_cast<TMSGainEffect*> (iEffect)->GetMaxLevel(level);
    62         }
    59     }
    63     return status;
    60     return status;
    64     }
    61 }
    65 
    62 
    66 gint QTMSGainEffect::GetType(QTMSSourceType& sourcetype)
    63 gint QTMSGainEffect::GetType(QTMSSourceType& sourcetype)
    67     {
    64 {
    68     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    65     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    69     if (iEffect)
    66     if (iEffect) {
    70         {
       
    71         status = static_cast<TMSGainEffect*> (iEffect)->GetType(sourcetype);
    67         status = static_cast<TMSGainEffect*> (iEffect)->GetType(sourcetype);
    72         }
    68     }
    73     return status;
    69     return status;
    74     }
    70 }
    75 
    71 
    76 // End of file
    72 // End of file