]>
iEval git - audio-libsamplerate.git/blob - libsamplerate/tests/downsample_test.c
9f438efa1e65284bc448cd42fdc1ecc1fa548988
2 ** Copyright (c) 2008-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
3 ** All rights reserved.
5 ** This code is released under 2-clause BSD license. Please see the
6 ** file at : https://github.com/erikd/libsamplerate/blob/master/COPYING
11 #include <samplerate.h>
16 downsample_test (int converter
)
17 { static float in
[1000], out
[10] ;
20 printf (" downsample_test (%-28s) ....... ", src_get_name (converter
)) ;
23 data
.src_ratio
= 1.0 / 255.0 ;
24 data
.input_frames
= ARRAY_LEN (in
) ;
25 data
.output_frames
= ARRAY_LEN (out
) ;
29 if (src_simple (&data
, converter
, 1))
30 { puts ("src_simple failed.") ;
35 } /* downsample_test */
42 downsample_test (SRC_ZERO_ORDER_HOLD
) ;
43 downsample_test (SRC_LINEAR
) ;
44 downsample_test (SRC_SINC_FASTEST
) ;
45 downsample_test (SRC_SINC_MEDIUM_QUALITY
) ;
46 downsample_test (SRC_SINC_BEST_QUALITY
) ;
This page took 0.050863 seconds and 5 git commands to generate.