comparison data/fileio/MIDIFileWriter.h @ 1048:c7e9afcbf070 cxx11

More type fixes. We now build with -Wconversion, on this platform (64-bit Linux) at least.
author Chris Cannam
date Tue, 10 Mar 2015 17:23:45 +0000
parents d6bd5751b8f6
children 48e9f538e6e9
comparison
equal deleted inserted replaced
1047:26cf6d5251ec 1048:c7e9afcbf070
22 22
23 #ifndef _MIDI_FILE_WRITER_H_ 23 #ifndef _MIDI_FILE_WRITER_H_
24 #define _MIDI_FILE_WRITER_H_ 24 #define _MIDI_FILE_WRITER_H_
25 25
26 #include "base/RealTime.h" 26 #include "base/RealTime.h"
27 #include "base/BaseTypes.h"
27 28
28 #include <QString> 29 #include <QString>
29 30
30 #include <vector> 31 #include <vector>
31 #include <map> 32 #include <map>
43 class MIDIFileWriter 44 class MIDIFileWriter
44 { 45 {
45 public: 46 public:
46 MIDIFileWriter(QString path, 47 MIDIFileWriter(QString path,
47 const NoteExportable *exportable, 48 const NoteExportable *exportable,
48 int sampleRate, // used to convert exportable sample timings 49 sv_samplerate_t sampleRate, // used to convert exportable sample timings
49 float tempo = 120.f); 50 float tempo = 120.f);
50 virtual ~MIDIFileWriter(); 51 virtual ~MIDIFileWriter();
51 52
52 virtual bool isOK() const; 53 virtual bool isOK() const;
53 virtual QString getError() const; 54 virtual QString getError() const;
77 78
78 bool convert(); 79 bool convert();
79 80
80 QString m_path; 81 QString m_path;
81 const NoteExportable *m_exportable; 82 const NoteExportable *m_exportable;
82 int m_sampleRate; 83 sv_samplerate_t m_sampleRate;
83 float m_tempo; 84 float m_tempo;
84 int m_timingDivision; // pulses per quarter note 85 int m_timingDivision; // pulses per quarter note
85 MIDIFileFormatType m_format; 86 MIDIFileFormatType m_format;
86 unsigned int m_numberOfTracks; 87 unsigned int m_numberOfTracks;
87 88