comparison audio/AudioGenerator.h @ 613:88f9266e0417

Minor tidy
author Chris Cannam
date Mon, 13 Aug 2018 11:43:21 +0100
parents b23bebfdfaba
children 0aee6ff48018
comparison
equal deleted inserted replaced
612:1822563a5da1 613:88f9266e0417
79 virtual sv_frame_t getBlockSize() const; 79 virtual sv_frame_t getBlockSize() const;
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,
85 float **buffer, sv_frame_t fadeIn = 0, sv_frame_t fadeOut = 0); 85 sv_frame_t startFrame,
86 sv_frame_t frameCount,
87 float **buffer,
88 sv_frame_t fadeIn = 0,
89 sv_frame_t fadeOut = 0);
86 90
87 /** 91 /**
88 * Specify that only the given set of models should be played. 92 * Specify that only the given set of models should be played.
89 */ 93 */
90 virtual void setSoloModelSet(std::set<Model *>s); 94 virtual void setSoloModelSet(std::set<Model *>s);
106 bool m_soloing; 110 bool m_soloing;
107 std::set<Model *> m_soloModelSet; 111 std::set<Model *> m_soloModelSet;
108 112
109 struct NoteOff { 113 struct NoteOff {
110 114
111 NoteOff(float _freq, sv_frame_t _frame) : frequency(_freq), frame(_frame) { } 115 NoteOff(float _freq, sv_frame_t _frame, sv_frame_t _startFrame) :
116 frequency(_freq), frame(_frame), startFrame(_startFrame) { }
112 117
113 float frequency; 118 float frequency;
114 sv_frame_t frame; 119 sv_frame_t frame;
115 120
116 struct Comparator { 121 struct Comparator {