From: Jaechul Lee Date: Tue, 24 Oct 2023 05:43:11 +0000 (+0900) Subject: Exclude noise-suppression on TV X-Git-Tag: accepted/tizen/unified/20231025.120207^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fsandbox%2Fwangbiao%2Ftest;p=platform%2Fcore%2Fmultimedia%2Flibaudio-effect.git Exclude noise-suppression on TV * fixed -Werror=sign-compare error [Version] 0.0.17 [Issue Type] Update Change-Id: I4e326cbbd92d02757194cca8e99ab2570b239237 Signed-off-by: Jaechul Lee --- diff --git a/include/audio_effect_interface.h b/include/audio_effect_interface.h index ff1407c..826a40f 100644 --- a/include/audio_effect_interface.h +++ b/include/audio_effect_interface.h @@ -47,8 +47,8 @@ typedef struct audio_effect_plugin_info { int max_rate; int min_channels; int max_channels; - int min_format; - int max_format; + audio_effect_format_e min_format; + audio_effect_format_e max_format; } constraint; } audio_effect_plugin_info_s; diff --git a/packaging/libaudio-effect.spec b/packaging/libaudio-effect.spec index 18edb11..91db7af 100644 --- a/packaging/libaudio-effect.spec +++ b/packaging/libaudio-effect.spec @@ -1,6 +1,6 @@ Name: libaudio-effect Summary: audio effect library -Version: 0.0.16 +Version: 0.0.17 Release: 0 Group: System/Libraries License: Apache-2.0 @@ -8,8 +8,8 @@ Source0: %{name}-%{version}.tar.gz BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(speexdsp) -BuildRequires: pkgconfig(noise-suppression) %if "%{tizen_profile_name}" != "tv" +BuildRequires: pkgconfig(noise-suppression) BuildRequires: pkgconfig(rnnoise) BuildRequires: pkgconfig(webrtc-audio-processing) %endif @@ -34,11 +34,11 @@ MMSound development package for audio effect %if "%{tizen_profile_name}" != "tv" -Dns-rnnoise=enabled \ -Daec-webrtc=enabled \ + -Dns-srid=enabled \ %endif -Dagc-speex=enabled \ -Drefcopy=enabled \ - -Daec-speex=enabled \ - -Dns-srid=enabled + -Daec-speex=enabled %{meson_build} diff --git a/src/audio_effect_util.c b/src/audio_effect_util.c index ccf71f2..2cfdda6 100644 --- a/src/audio_effect_util.c +++ b/src/audio_effect_util.c @@ -89,7 +89,7 @@ void audio_effect_util_interleave(const void **src, void *dst, int channels, siz frame_size = sample_size * channels; for (i = 0; i < channels; i++) { - int j; + size_t j; char *d; const char *s; @@ -118,7 +118,7 @@ void audio_effect_util_deinterleave(const void *src, void **dst, int channels, s frame_size = sample_size * channels; for (i = 0; i < channels; i++) { - int j; + size_t j; char *d; const char *s; diff --git a/src/plugin_refcopy.c b/src/plugin_refcopy.c index 5e57871..e9a483f 100644 --- a/src/plugin_refcopy.c +++ b/src/plugin_refcopy.c @@ -59,7 +59,7 @@ static int reference_copy_process_reference(void *priv, char *rec, char *ref, ch actual_bytes = rec_bytes - ref_bytes; total_bytes = rec_bytes * u->frames; - while ((dst - out) < total_bytes) { + while ((size_t)(dst - out) < total_bytes) { memcpy(dst, rec, actual_bytes); memcpy(dst + actual_bytes, ref, ref_bytes); dst += rec_bytes;