/* Effect */
void setEffectMethod(int method) noexcept;
- std::string getEffectMethod() const noexcept;
+ std::string getEffectNoiseSuppressionMethod() const noexcept;
+ std::string getEffectAutomaticGainControlMethod() const noexcept;
void setEffectMethodWithReference(sound_effect_method_with_reference_e method, int id) noexcept;
std::pair<std::string, int> getEffectMethodWithReference() const noexcept;
Name: capi-media-audio-io
Summary: An Audio Input & Audio Output library in Tizen Native API
-Version: 0.5.64
+Version: 0.5.65
Release: 0
Group: Multimedia/API
License: Apache-2.0
__mEffectMethod = method;
}
-std::string CAudioInfo::getEffectMethod() const noexcept {
+std::string CAudioInfo::getEffectNoiseSuppressionMethod() const noexcept {
std::string method;
if (__mEffectMethod & SOUND_EFFECT_NOISE_SUPPRESSION_VOIP)
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,";
if (__mDirection == EStreamDirection::STREAM_DIRECTION_RECORD) {
/* Noise-suppression effect should be set first. */
- std::string method = __mSpec.getAudioInfo().getEffectMethod();
+ std::string ns_method = __mSpec.getAudioInfo().getEffectNoiseSuppressionMethod();
auto [ method_reference, device_id ] = __mSpec.getAudioInfo().getEffectMethodWithReference();
- std::string method_all = method + method_reference;
+ std::string agc_method = __mSpec.getAudioInfo().getEffectAutomaticGainControlMethod();
+
+ std::string method_all = ns_method + method_reference + agc_method;
if (!method_all.empty()) {
pa_proplist_setf(__mpPropList, PA_PROP_MEDIA_PREPROCESSOR_METHOD, "%s", method_all.c_str());