Remove audio_effect_get_process_framesize function 49/316149/2 accepted/tizen_unified_dev accepted/tizen_unified_toolchain accepted/tizen/9.0/unified/20241030.234347 accepted/tizen/unified/20240903.110734 accepted/tizen/unified/dev/20240910.111508 accepted/tizen/unified/toolchain/20241004.102010 accepted/tizen/unified/x/20240904.025253 accepted/tizen/unified/x/asan/20241014.000407 tizen_9.0_m2_release
authorJaechul Lee <jcsing.lee@samsung.com>
Wed, 14 Aug 2024 05:01:19 +0000 (14:01 +0900)
committerJaechul Lee <jcsing.lee@samsung.com>
Wed, 14 Aug 2024 05:08:56 +0000 (14:08 +0900)
audio_effect_create function returns adjust_frames.
audio_effect_get_process_framesize function doesn't need to use anymore.

[Version] 15.0.81
[Issue Type] Update

Change-Id: I14be140b407ca7e6bd24171083fe7d90674d2305
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
packaging/pulseaudio-modules-tizen.spec
src/preprocessor/processor.c

index 3162c62dd4b1ae06d4a36bc933901dfefab7154a..45273a58abd5befa611e99c04c7899ad33c94ae4 100644 (file)
@@ -2,7 +2,7 @@
 
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          15.0.80
+Version:          15.0.81
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index fd5b97c6255c9b879230b26ebc1146bf5b30f55d..60a031c2605afe3e7af9fd7f593c73273ab342bd 100644 (file)
@@ -138,7 +138,7 @@ pa_processor *pa_processor_new(pa_core *core,
                                 pa_processor_method_t method) {
     pa_processor *processor;
     pa_memchunk silence;
-    size_t process_framesize;
+    size_t adjust_frames;
 
     audio_effect_method_e audio_effect_method;
     audio_effect_format_e format;
@@ -168,7 +168,7 @@ pa_processor *pa_processor_new(pa_core *core,
     }
 
     processor->audio_effect = audio_effect_create(audio_effect_method, ss->rate, ss->channels,
-                                                    format, processor->process_frames);
+                                                    format, processor->process_frames, &adjust_frames);
 
     if (!processor->audio_effect) {
         pa_log_error("Failed to create audio effect. audio_effect_method(%s), "
@@ -178,9 +178,8 @@ pa_processor *pa_processor_new(pa_core *core,
         goto fail;
     }
 
-    process_framesize = audio_effect_get_process_framesize(processor->audio_effect);
-    if (process_framesize > 0) {
-        processor->process_frames = process_framesize;
+    if (adjust_frames > 0) {
+        processor->process_frames = adjust_frames;
         processor->process_usec = pa_processor_frame_to_usec(processor->process_frames, ss);
         processor->process_bytes = pa_usec_to_bytes(processor->process_usec, ss);