~ubuntu-branches/ubuntu/karmic/mhwaveedit/karmic

« back to all changes in this revision

Viewing changes to src/dataformat.h

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2008-01-08 22:20:37 UTC
  • mfrom: (2.1.6 hardy)
  • Revision ID: james.westby@ubuntu.com-20080108222037-tsazhckl5vmc8yih
Tags: 1.4.14-2
Added desktop file (Closes: #457849), thanks to Marco Rodrigues

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2002 2003 2004 2005, Magnus Hjorth
 
2
 * Copyright (C) 2002 2003 2004 2005 2006, Magnus Hjorth
3
3
 *
4
4
 * This file is part of mhWaveEdit.
5
5
 *
90
90
#define DITHER_NONE       0
91
91
#define DITHER_TRIANGULAR 1
92
92
#define DITHER_MAX        1
 
93
/* This constant can be used to indicate that dithering should not
 
94
 * be necessary. If this is given when an FP->PCM conversion is done,
 
95
 * the program will halt. */
 
96
#define DITHER_UNSPEC    -1
93
97
 
94
98
/* These convert one or many samples between pcm formats and sample_t 
95
99
 * NOTE: These convert SINGLE-CHANNEL samples so you have to multiply the
103
107
                   void *outdata, Dataformat *outdata_format,
104
108
                   guint count, int dither_mode);
105
109
 
 
110
gint unnormalized_count(sample_t *buf, gint buflen);
 
111
 
106
112
void conversion_selftest(void);
107
113
void conversion_performance_test(void);
108
114