comparison data/fileio/AudioFileReaderFactory.h @ 316:3a6725f285d6

* Make RemoteFile far more pervasive, and use it for local files as well so that we can handle both transparently. Make it shallow copy with reference counting, so it can be used by value without having to worry about the cache file lifetime. Use RemoteFile for MainWindow file-open functions, etc
author Chris Cannam
date Thu, 18 Oct 2007 15:31:20 +0000
parents c022976d18e8
children c324d410b096
comparison
equal deleted inserted replaced
315:96ef9746c560 316:3a6725f285d6
15 15
16 #ifndef _AUDIO_FILE_READER_FACTORY_H_ 16 #ifndef _AUDIO_FILE_READER_FACTORY_H_
17 #define _AUDIO_FILE_READER_FACTORY_H_ 17 #define _AUDIO_FILE_READER_FACTORY_H_
18 18
19 #include <QString> 19 #include <QString>
20
21 #include "RemoteFile.h"
20 22
21 class AudioFileReader; 23 class AudioFileReader;
22 24
23 class AudioFileReaderFactory 25 class AudioFileReaderFactory
24 { 26 {
40 * if you want to find out whether the file is being resampled 42 * if you want to find out whether the file is being resampled
41 * or not. 43 * or not.
42 * 44 *
43 * Caller owns the returned object and must delete it after use. 45 * Caller owns the returned object and must delete it after use.
44 */ 46 */
45 static AudioFileReader *createReader(QString path, size_t targetRate = 0); 47 static AudioFileReader *createReader(RemoteFile source, size_t targetRate = 0);
46 }; 48 };
47 49
48 #endif 50 #endif
49 51