qtms/src/qtmsilbc.cpp
changeset 51 e61a04404bdf
parent 32 edd273b3192a
equal deleted inserted replaced
44:d141fc1ad77b 51:e61a04404bdf
    21 
    21 
    22 using namespace QTMS;
    22 using namespace QTMS;
    23 using namespace TMS;
    23 using namespace TMS;
    24 
    24 
    25 QTMSILBCFormat::QTMSILBCFormat()
    25 QTMSILBCFormat::QTMSILBCFormat()
    26     {
    26 {
    27     }
    27 }
    28 
    28 
    29 QTMSILBCFormat::~QTMSILBCFormat()
    29 QTMSILBCFormat::~QTMSILBCFormat()
    30     {
    30 {
    31     }
    31 }
    32 
    32 
    33 gint QTMSILBCFormat::SetMode(const QTMSG711CodecMode aMode)
    33 gint QTMSILBCFormat::SetMode(const QTMSG711CodecMode aMode)
    34     {
    34 {
    35     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    35     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    36     if (iFormat)
    36     if (iFormat) {
    37         {
       
    38         status = static_cast<TMSILBCFormat*> (iFormat)->SetMode(aMode);
    37         status = static_cast<TMSILBCFormat*> (iFormat)->SetMode(aMode);
    39         }
    38     }
    40     return status;
    39     return status;
    41     }
    40 }
    42 
    41 
    43 gint QTMSILBCFormat::GetMode(QTMSG711CodecMode& aMode)
    42 gint QTMSILBCFormat::GetMode(QTMSG711CodecMode& aMode)
    44     {
    43 {
    45     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    44     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    46     if (iFormat)
    45     if (iFormat) {
    47         {
       
    48         status = static_cast<TMSILBCFormat*> (iFormat)->GetMode(aMode);
    46         status = static_cast<TMSILBCFormat*> (iFormat)->GetMode(aMode);
    49         }
    47     }
    50     return status;
    48     return status;
    51     }
    49 }
    52 
    50 
    53 gint QTMSILBCFormat::SetCNG(const gboolean aCng)
    51 gint QTMSILBCFormat::SetCNG(const gboolean aCng)
    54     {
    52 {
    55     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    53     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    56     if (iFormat)
    54     if (iFormat) {
    57         {
       
    58         status = static_cast<TMSILBCFormat*> (iFormat)->SetCNG(aCng);
    55         status = static_cast<TMSILBCFormat*> (iFormat)->SetCNG(aCng);
    59         }
    56     }
    60     return status;
    57     return status;
    61     }
    58 }
    62 
    59 
    63 gint QTMSILBCFormat::GetCNG(gboolean& aCng)
    60 gint QTMSILBCFormat::GetCNG(gboolean& aCng)
    64     {
    61 {
    65     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    62     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    66     if (iFormat)
    63     if (iFormat) {
    67         {
       
    68         status = static_cast<TMSILBCFormat*> (iFormat)->GetCNG(aCng);
    64         status = static_cast<TMSILBCFormat*> (iFormat)->GetCNG(aCng);
    69         }
    65     }
    70     return status;
    66     return status;
    71     }
    67 }
    72 
    68 
    73 gint QTMSILBCFormat::SetVADMode(const gboolean aVad)
    69 gint QTMSILBCFormat::SetVADMode(const gboolean aVad)
    74     {
    70 {
    75     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    71     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    76     if (iFormat)
    72     if (iFormat) {
    77         {
       
    78         status = static_cast<TMSILBCFormat*> (iFormat)->SetVADMode(aVad);
    73         status = static_cast<TMSILBCFormat*> (iFormat)->SetVADMode(aVad);
    79         }
    74     }
    80     return status;
    75     return status;
    81     }
    76 }
    82 
    77 
    83 gint QTMSILBCFormat::GetVADMode(gboolean& aVad)
    78 gint QTMSILBCFormat::GetVADMode(gboolean& aVad)
    84     {
    79 {
    85     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    80     gint status(QTMS_RESULT_UNINITIALIZED_OBJECT);
    86     if (iFormat)
    81     if (iFormat) {
    87         {
       
    88         status = static_cast<TMSILBCFormat*> (iFormat)->GetVADMode(aVad);
    82         status = static_cast<TMSILBCFormat*> (iFormat)->GetVADMode(aVad);
    89         }
    83     }
    90     return status;
    84     return status;
    91     }
    85 }
    92 
    86 
    93 // End of file
    87 // End of file