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

« back to all changes in this revision

Viewing changes to src/datasource.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
 *
200
200
                         int dither_mode);
201
201
gboolean datasource_read_fp(Datasource *source, off_t sampleno, 
202
202
                            sample_t *buffer, int dither_mode);
203
 
/* Returns number of bytes read (0 on error). */
 
203
/* Returns number of bytes read (0 on error). If clipping != NULL and clipping
 
204
 * conversion was performed, sets *clipping to TRUE.
 
205
 */
204
206
guint datasource_read_array(Datasource *source, off_t sampleno, 
205
 
                            guint size, gpointer buffer, int dither_mode);
 
207
                            guint size, gpointer buffer, int dither_mode,
 
208
                            off_t *clipcount);
206
209
/* Returns number of (multi-channel) samples read (0 on error). */
207
210
guint datasource_read_array_fp(Datasource *source, off_t sampleno,
208
211
                               guint samples, sample_t *buffer, 
209
 
                               int dither_mode);
 
212
                               int dither_mode, off_t *clipcount);
210
213
 
211
214
 
212
215
 
229
232
 */
230
233
 
231
234
gboolean datasource_dump(Datasource *ds, off_t position, off_t length,
232
 
                         EFILE *file, int dither_mode, StatusBar *bar);
 
235
                         EFILE *file, int dither_mode, StatusBar *bar,
 
236
                         off_t *clipcount);
233
237
 
234
238
 
235
239
/* This reads all the data of the datasource into a memory buffer and converts
245
249
 
246
250
gboolean datasource_backup_unlink(gchar *filename);
247
251
 
 
252
/* Returns zero if reading the datasource does not cause clipping conversion.
 
253
 * and the datasource contains normalized data.
 
254
 * Returns non-zero if reading the datasource causes clipping conversion
 
255
 * Returns 1 if the error can be solved by normalizing the Datasource
 
256
 * Returns 2 if the error can not be solved in that way (very special cases)
 
257
 * Returns <0 if an error or break occurred while checking
 
258
 * The StatusBar must already be in progress mode.
 
259
 */
 
260
gint datasource_clip_check(Datasource *ds, StatusBar *bar);
248
261
 
249
262
#endif