~ubuntu-branches/ubuntu/intrepid/iaxmodem/intrepid

« back to all changes in this revision

Viewing changes to lib/spandsp/tests/time_scale_tests.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien BLACHE
  • Date: 2008-02-12 15:29:42 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20080212152942-28cxxstfy8iujm0p
Tags: 1.1.0~dfsg-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 * along with this program; if not, write to the Free Software
23
23
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24
24
 *
25
 
 * $Id: time_scale_tests.c,v 1.14 2006/11/19 14:07:27 steveu Exp $
 
25
 * $Id: time_scale_tests.c,v 1.16 2007/11/26 13:29:00 steveu Exp $
26
26
 */
27
27
 
28
28
/*! \page time_scale_tests_page Time scaling tests
40
40
#include "config.h"
41
41
#endif
42
42
 
 
43
#include <stdlib.h>
43
44
#include <stdio.h>
44
 
#include <inttypes.h>
45
 
#include <stdlib.h>
46
45
#include <string.h>
47
 
#if defined(HAVE_TGMATH_H)
48
 
#include <tgmath.h>
49
 
#endif
50
 
#if defined(HAVE_MATH_H)
51
 
#include <math.h>
52
 
#endif
53
46
#include <audiofile.h>
54
 
#include <tiffio.h>
55
47
 
56
48
#include "spandsp.h"
57
49
 
69
61
    int new_frames;
70
62
    int out_frames;
71
63
    int count;
72
 
    time_scale_t state;
 
64
    time_scale_state_t state;
73
65
    float x;
74
66
    float rate;
75
67
    int16_t in[BLOCK_LEN];