comparison data/fileio/AudioFileReaderFactory.h @ 297:c022976d18e8

* Merge from sv-match-alignment branch (excluding alignment-specific document). - add aggregate wave model (not yet complete enough to be added as a true model in a layer, but there's potential) - add play solo mode - add alignment model -- unused in plain SV - fix two plugin leaks - add m3u playlist support (opens all files at once, potentially hazardous) - fix retrieval of pre-encoded URLs - add ability to resample audio files on import, so as to match rates with other files previously loaded; add preference for same - add preliminary support in transform code for range and rate of transform input - reorganise preferences dialog, move dark-background option to preferences, add option for temporary directory location
author Chris Cannam
date Fri, 28 Sep 2007 13:56:38 +0000
parents 92e8dbde73cd
children 3a6725f285d6
comparison
equal deleted inserted replaced
296:2b6c99b607f1 297:c022976d18e8
32 32
33 /** 33 /**
34 * Return an audio file reader initialised to the file at the 34 * Return an audio file reader initialised to the file at the
35 * given path, or NULL if no suitable reader for this path is 35 * given path, or NULL if no suitable reader for this path is
36 * available or the file cannot be opened. 36 * available or the file cannot be opened.
37 *
38 * If targetRate is non-zero, the file will be resampled to that
39 * rate (transparently). You can query reader->getNativeRate()
40 * if you want to find out whether the file is being resampled
41 * or not.
42 *
37 * Caller owns the returned object and must delete it after use. 43 * Caller owns the returned object and must delete it after use.
38 */ 44 */
39 static AudioFileReader *createReader(QString path); 45 static AudioFileReader *createReader(QString path, size_t targetRate = 0);
40 }; 46 };
41 47
42 #endif 48 #endif
43 49