Mercurial > hg > svcore
comparison data/fileio/MIDIFileReader.h @ 1359:1c9bbbb6116a 3.0-integration
Use W64 instead of WAV for decoded files; use Ogg reader in preference to WAV one for Ogg files (WAV reader works, via libsndfile, but doesn't load metadata); fix Ogg reader to use QFile open instead of non-Win32-compatible API; add more encoder tests, audio writer test, midi reader test
author | Chris Cannam |
---|---|
date | Tue, 10 Jan 2017 10:58:25 +0000 |
parents | 26cf6d5251ec |
children | 48e9f538e6e9 |
comparison
equal
deleted
inserted
replaced
1358:b7be05d57f0a | 1359:1c9bbbb6116a |
---|---|
10 published by the Free Software Foundation; either version 2 of the | 10 published by the Free Software Foundation; either version 2 of the |
11 License, or (at your option) any later version. See the file | 11 License, or (at your option) any later version. See the file |
12 COPYING included with this distribution for more information. | 12 COPYING included with this distribution for more information. |
13 */ | 13 */ |
14 | 14 |
15 | |
16 /* | 15 /* |
17 This is a modified version of a source file from the | 16 This is a modified version of a source file from the |
18 Rosegarden MIDI and audio sequencer and notation editor. | 17 Rosegarden MIDI and audio sequencer and notation editor. |
19 This file copyright 2000-2006 Richard Bown and Chris Cannam. | 18 This file copyright 2000-2006 Richard Bown and Chris Cannam. |
20 */ | 19 */ |
21 | 20 |
22 #ifndef _MIDI_FILE_READER_H_ | 21 #ifndef SV_MIDI_FILE_READER_H |
23 #define _MIDI_FILE_READER_H_ | 22 #define SV_MIDI_FILE_READER_H |
24 | 23 |
25 #include "DataFileReader.h" | 24 #include "DataFileReader.h" |
26 #include "base/RealTime.h" | 25 #include "base/RealTime.h" |
27 | 26 |
28 #include <map> | 27 #include <map> |
59 { | 58 { |
60 Q_OBJECT | 59 Q_OBJECT |
61 | 60 |
62 public: | 61 public: |
63 MIDIFileReader(QString path, | 62 MIDIFileReader(QString path, |
64 MIDIFileImportPreferenceAcquirer *pref, | 63 MIDIFileImportPreferenceAcquirer *pref, // may be null |
65 sv_samplerate_t mainModelSampleRate); | 64 sv_samplerate_t mainModelSampleRate); |
66 virtual ~MIDIFileReader(); | 65 virtual ~MIDIFileReader(); |
67 | 66 |
68 virtual bool isOK() const; | 67 virtual bool isOK() const; |
69 virtual QString getError() const; | 68 virtual QString getError() const; |