comparison audio/AudioGenerator.h @ 595:b23bebfdfaba

Untabify
author Chris Cannam
date Thu, 01 Mar 2018 18:02:22 +0000
parents 56acd9368532
children 88f9266e0417
comparison
equal deleted inserted replaced
594:72b4870f0e6b 595:b23bebfdfaba
80 80
81 /** 81 /**
82 * Mix a single model into an output buffer. 82 * Mix a single model into an output buffer.
83 */ 83 */
84 virtual sv_frame_t mixModel(Model *model, sv_frame_t startFrame, sv_frame_t frameCount, 84 virtual sv_frame_t mixModel(Model *model, sv_frame_t startFrame, sv_frame_t frameCount,
85 float **buffer, sv_frame_t fadeIn = 0, sv_frame_t fadeOut = 0); 85 float **buffer, sv_frame_t fadeIn = 0, sv_frame_t fadeOut = 0);
86 86
87 /** 87 /**
88 * Specify that only the given set of models should be played. 88 * Specify that only the given set of models should be played.
89 */ 89 */
90 virtual void setSoloModelSet(std::set<Model *>s); 90 virtual void setSoloModelSet(std::set<Model *>s);
109 struct NoteOff { 109 struct NoteOff {
110 110
111 NoteOff(float _freq, sv_frame_t _frame) : frequency(_freq), frame(_frame) { } 111 NoteOff(float _freq, sv_frame_t _frame) : frequency(_freq), frame(_frame) { }
112 112
113 float frequency; 113 float frequency;
114 sv_frame_t frame; 114 sv_frame_t frame;
115 115
116 struct Comparator { 116 struct Comparator {
117 bool operator()(const NoteOff &n1, const NoteOff &n2) const { 117 bool operator()(const NoteOff &n1, const NoteOff &n2) const {
118 return n1.frame < n2.frame; 118 return n1.frame < n2.frame;
119 } 119 }
120 }; 120 };
121 }; 121 };
122 122
123 123
124 typedef std::map<const Model *, ClipMixer *> ClipMixerMap; 124 typedef std::map<const Model *, ClipMixer *> ClipMixerMap;
125 125