comparison audio/AudioGenerator.h @ 617:e98a42e94d90

Merge from branch avoid-pointer-keys
author Chris Cannam
date Tue, 04 Sep 2018 11:32:49 +0100
parents 7d3a6357ce64
children 161063152ddd
comparison
equal deleted inserted replaced
615:755fc02a1565 617:e98a42e94d90
11 published by the Free Software Foundation; either version 2 of the 11 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version. See the file 12 License, or (at your option) any later version. See the file
13 COPYING included with this distribution for more information. 13 COPYING included with this distribution for more information.
14 */ 14 */
15 15
16 #ifndef _AUDIO_GENERATOR_H_ 16 #ifndef SV_AUDIO_GENERATOR_H
17 #define _AUDIO_GENERATOR_H_ 17 #define SV_AUDIO_GENERATOR_H
18 18
19 class Model;
20 class NoteModel; 19 class NoteModel;
21 class FlexiNoteModel; 20 class FlexiNoteModel;
22 class DenseTimeValueModel; 21 class DenseTimeValueModel;
23 class SparseOneDimensionalModel; 22 class SparseOneDimensionalModel;
24 class Playable; 23 class Playable;
31 #include <set> 30 #include <set>
32 #include <map> 31 #include <map>
33 #include <vector> 32 #include <vector>
34 33
35 #include "base/BaseTypes.h" 34 #include "base/BaseTypes.h"
35 #include "data/model/Model.h"
36 36
37 class AudioGenerator : public QObject 37 class AudioGenerator : public QObject
38 { 38 {
39 Q_OBJECT 39 Q_OBJECT
40 40
138 } 138 }
139 }; 139 };
140 }; 140 };
141 141
142 142
143 typedef std::map<const Model *, ClipMixer *> ClipMixerMap; 143 typedef std::map<const ModelId, ClipMixer *> ClipMixerMap;
144 144
145 typedef std::multiset<NoteOff, NoteOff::Comparator> NoteOffSet; 145 typedef std::multiset<NoteOff, NoteOff::Comparator> NoteOffSet;
146 typedef std::map<const Model *, NoteOffSet> NoteOffMap; 146 typedef std::map<const ModelId, NoteOffSet> NoteOffMap;
147 147
148 typedef std::map<const Model *, ContinuousSynth *> ContinuousSynthMap; 148 typedef std::map<const ModelId, ContinuousSynth *> ContinuousSynthMap;
149 149
150 QMutex m_mutex; 150 QMutex m_mutex;
151 151
152 ClipMixerMap m_clipMixerMap; 152 ClipMixerMap m_clipMixerMap;
153 NoteOffMap m_noteOffs; 153 NoteOffMap m_noteOffs;