Add get ns/agc function
[platform/core/api/audio-io.git] / src / cpp / CAudioInfo.cpp
index 8cf23d4..099451b 100644 (file)
@@ -116,7 +116,7 @@ void CAudioInfo::setEffectMethod(int method) noexcept {
     __mEffectMethod = method;
 }
 
-std::string CAudioInfo::getEffectMethod() const noexcept {
+std::string CAudioInfo::getEffectNoiseSuppressionMethod() const noexcept {
     std::string method;
 
     if (__mEffectMethod & SOUND_EFFECT_NOISE_SUPPRESSION_VOIP)
@@ -128,6 +128,12 @@ std::string CAudioInfo::getEffectMethod() const noexcept {
     if (__mEffectMethod & SOUND_EFFECT_NOISE_SUPPRESSION_DOORBELL)
         method += "ns-srid,";
 
+    return method;
+}
+
+std::string CAudioInfo::getEffectAutomaticGainControlMethod() const noexcept {
+    std::string method;
+
     if (__mEffectMethod & SOUND_EFFECT_AUTOMATIC_GAIN_CONTROL_CAPTURE)
         method += "agc-speex,";