comparison data/fileio/AudioFileReader.h @ 632:a4b8ad0f1a8f

* Some sketchy track lookup code
author Chris Cannam
date Fri, 19 Mar 2010 12:21:59 +0000
parents 700cd3350391
children 5db8181ea521
comparison
equal deleted inserted replaced
631:3a5ee4b6c9ad 632:a4b8ad0f1a8f
19 #include <QString> 19 #include <QString>
20 20
21 #include "FileSource.h" 21 #include "FileSource.h"
22 22
23 #include <vector> 23 #include <vector>
24 #include <map>
24 25
25 typedef std::vector<float> SampleBlock; 26 typedef std::vector<float> SampleBlock;
26 27
27 class AudioFileReader : public QObject 28 class AudioFileReader : public QObject
28 { 29 {
58 * This could represent almost anything (band, composer, 59 * This could represent almost anything (band, composer,
59 * conductor, artist etc). 60 * conductor, artist etc).
60 */ 61 */
61 virtual QString getMaker() const { return ""; } 62 virtual QString getMaker() const { return ""; }
62 63
64 typedef std::map<QString, QString> TagMap;
65 virtual TagMap getTags() const { return TagMap(); }
66
63 /** 67 /**
64 * Return interleaved samples for count frames from index start. 68 * Return interleaved samples for count frames from index start.
65 * The resulting sample block will contain count * 69 * The resulting sample block will contain count *
66 * getChannelCount() samples (or fewer if end of file is reached). 70 * getChannelCount() samples (or fewer if end of file is reached).
67 * 71 *