Exclude noise-suppression on TV 06/300406/3 sandbox/wangbiao/test accepted/tizen/unified/20231025.120207
authorJaechul Lee <jcsing.lee@samsung.com>
Tue, 24 Oct 2023 05:43:11 +0000 (14:43 +0900)
committerJaechul Lee <jcsing.lee@samsung.com>
Tue, 24 Oct 2023 08:21:29 +0000 (17:21 +0900)
* fixed -Werror=sign-compare error

[Version] 0.0.17
[Issue Type] Update

Change-Id: I4e326cbbd92d02757194cca8e99ab2570b239237
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
include/audio_effect_interface.h
packaging/libaudio-effect.spec
src/audio_effect_util.c
src/plugin_refcopy.c

index ff1407c8a972dacadc60eb0efa199252dcd50999..826a40f0a4e2a1f01713c63f6130f419a685543f 100644 (file)
@@ -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;
 
index 18edb1165e5f443feadd3951311985b20e8f10e1..91db7af29027c6b47f43d8ab223950f58195aecb 100644 (file)
@@ -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}
 
index ccf71f2e31d9b1e9498e28a49638311a92b0fa5e..2cfdda615bfdd25938bf5ed737777ac4ef0f6176 100644 (file)
@@ -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;
 
index 5e5787183a2522b8756e9b220b4ca9ac986abd45..e9a483f3a88c8c866be1ad5b2259fbf3434ca001 100644 (file)
@@ -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;