remove unused param from struct

dev
xufulong 3 years ago
parent 6ad0556e8f
commit 074787e36b
  1. 1
      app/CMakeLists.txt
  2. 3
      app/src/main/cpp/visualizer/execute_fft.c
  3. 11
      app/src/main/cpp/visualizer/execute_fft.h

@ -35,6 +35,7 @@ add_library( # Sets the name of the library.
src/main/cpp/fast_start.c src/main/cpp/fast_start.c
src/main/cpp/ffprobe_cmd.cpp src/main/cpp/ffprobe_cmd.cpp
src/main/cpp/visualizer/fft.c src/main/cpp/visualizer/fft.c
src/main/cpp/visualizer/fixed_fft.c
src/main/cpp/visualizer/block_queue.c src/main/cpp/visualizer/block_queue.c
src/main/cpp/visualizer/execute_fft.c src/main/cpp/visualizer/execute_fft.c
src/main/cpp/visualizer/window.c src/main/cpp/visualizer/window.c

@ -23,9 +23,6 @@ int open_visualizer(filter_sys_t *p_sys)
p_sys->i_prev_nb_samples = 0; p_sys->i_prev_nb_samples = 0;
p_sys->p_prev_s16_buff = NULL; p_sys->p_prev_s16_buff = NULL;
p_sys->f_rotationAngle = 0;
p_sys->f_rotationIncrement = ROTATION_INCREMENT;
window_param *w_param = (window_param*) malloc(sizeof(window_param)); window_param *w_param = (window_param*) malloc(sizeof(window_param));
p_sys->wind_param = *w_param; p_sys->wind_param = *w_param;

@ -16,10 +16,6 @@ extern "C" {
#include "fft.h" #include "fft.h"
#include "window.h" #include "window.h"
#ifdef __cplusplus
}
#endif
typedef struct typedef struct
{ {
pthread_t thread; pthread_t thread;
@ -29,9 +25,6 @@ int i_channels;
int i_prev_nb_samples; int i_prev_nb_samples;
int16_t *p_prev_s16_buff; int16_t *p_prev_s16_buff;
float f_rotationAngle;
float f_rotationIncrement;
/* FFT window parameters */ /* FFT window parameters */
window_param wind_param; window_param wind_param;
@ -58,4 +51,8 @@ void release_visualizer(filter_sys_t *p_sys);
int ensure_memory(filter_sys_t *fft_filter, int nb_samples); int ensure_memory(filter_sys_t *fft_filter, int nb_samples);
#ifdef __cplusplus
}
#endif
#endif //EXECUTE_FFT_H #endif //EXECUTE_FFT_H

Loading…
Cancel
Save