comparison libaf/window.h @ 32078:0dfbb22d68c8

Get rid of MPLAYER_DSP_H hack and #include dsp.h instead. If dsp.h #inclusion is a prerequisite for window.h/filter.h, the clean solution is to have those headers #include dsp.h directly instead of relying on the user.
author diego
date Sat, 11 Sep 2010 22:11:40 +0000
parents 72d0b1444141
children
comparison
equal deleted inserted replaced
32077:db0bb7511440 32078:0dfbb22d68c8
23 Hamming, Blackman, Flattop and Kaiser. In the function call n is 23 Hamming, Blackman, Flattop and Kaiser. In the function call n is
24 the number of filter taps and w the buffer in which the filter 24 the number of filter taps and w the buffer in which the filter
25 coefficients will be stored. 25 coefficients will be stored.
26 */ 26 */
27 27
28 #if !defined MPLAYER_DSP_H
29 # error Never use window.h directly; include dsp.h instead.
30 #endif
31
32 #ifndef MPLAYER_WINDOW_H 28 #ifndef MPLAYER_WINDOW_H
33 #define MPLAYER_WINDOW_H 29 #define MPLAYER_WINDOW_H
30
31 #include "dsp.h"
34 32
35 void af_window_boxcar(int n, FLOAT_TYPE* w); 33 void af_window_boxcar(int n, FLOAT_TYPE* w);
36 void af_window_triang(int n, FLOAT_TYPE* w); 34 void af_window_triang(int n, FLOAT_TYPE* w);
37 void af_window_hanning(int n, FLOAT_TYPE* w); 35 void af_window_hanning(int n, FLOAT_TYPE* w);
38 void af_window_hamming(int n, FLOAT_TYPE* w); 36 void af_window_hamming(int n, FLOAT_TYPE* w);