comparison audio/AudioCallbackPlaySource.h @ 561:fc70aa31d8c5 3.0-integration

Fix some compiler problems
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 13 Dec 2016 16:23:48 +0000
parents 7b115a6505b8
children 6f54789f3127
comparison
equal deleted inserted replaced
560:e348e0c52115 561:fc70aa31d8c5
139 * Get the block size of the target audio device. This may be an 139 * Get the block size of the target audio device. This may be an
140 * estimate or upper bound, if the target has a variable block 140 * estimate or upper bound, if the target has a variable block
141 * size; the source should behave itself even if this value turns 141 * size; the source should behave itself even if this value turns
142 * out to be inaccurate. 142 * out to be inaccurate.
143 */ 143 */
144 int getTargetBlockSize() const; 144 virtual int getTargetBlockSize() const override;
145 145
146 /** 146 /**
147 * Set the playback latency of the target audio device, in frames 147 * Set the playback latency of the target audio device, in frames
148 * at the device sample rate. This is the difference between the 148 * at the device sample rate. This is the difference between the
149 * frame currently "leaving the speakers" and the last frame (or 149 * frame currently "leaving the speakers" and the last frame (or
168 168
169 /** 169 /**
170 * Return the sample rate set by the target audio device (or the 170 * Return the sample rate set by the target audio device (or the
171 * source sample rate if the target hasn't set one). 171 * source sample rate if the target hasn't set one).
172 */ 172 */
173 sv_samplerate_t getDeviceSampleRate() const; 173 virtual sv_samplerate_t getDeviceSampleRate() const override;
174 174
175 /** 175 /**
176 * Indicate how many channels the target audio device was opened 176 * Indicate how many channels the target audio device was opened
177 * with. Note that the target device does channel mixing in the 177 * with. Note that the target device does channel mixing in the
178 * case where our requested channel count does not match its, so 178 * case where our requested channel count does not match its, so
183 183
184 /** 184 /**
185 * Set the current output levels for metering (for call from the 185 * Set the current output levels for metering (for call from the
186 * target) 186 * target)
187 */ 187 */
188 void setOutputLevels(float left, float right); 188 virtual void setOutputLevels(float left, float right) override;
189 189
190 /** 190 /**
191 * Return the current (or thereabouts) output levels in the range 191 * Return the current (or thereabouts) output levels in the range
192 * 0.0 -> 1.0, for metering purposes. 192 * 0.0 -> 1.0, for metering purposes.
193 */ 193 */
194 virtual bool getOutputLevels(float &left, float &right); 194 virtual bool getOutputLevels(float &left, float &right) override;
195 195
196 /** 196 /**
197 * Get the number of channels of audio that in the source models. 197 * Get the number of channels of audio that in the source models.
198 * This may safely be called from a realtime thread. Returns 0 if 198 * This may safely be called from a realtime thread. Returns 0 if
199 * there is no source yet available. 199 * there is no source yet available.
278 * setAuditioningEffect (depending on real-time constraints). 278 * setAuditioningEffect (depending on real-time constraints).
279 * 279 *
280 * Pass a null pointer to remove the current auditioning plugin, 280 * Pass a null pointer to remove the current auditioning plugin,
281 * if any. 281 * if any.
282 */ 282 */
283 void setAuditioningEffect(Auditionable *plugin); 283 virtual void setAuditioningEffect(Auditionable *plugin) override;
284 284
285 /** 285 /**
286 * Specify that only the given set of models should be played. 286 * Specify that only the given set of models should be played.
287 */ 287 */
288 void setSoloModelSet(std::set<Model *>s); 288 void setSoloModelSet(std::set<Model *>s);
291 * Specify that all models should be played as normal (if not 291 * Specify that all models should be played as normal (if not
292 * muted). 292 * muted).
293 */ 293 */
294 void clearSoloModelSet(); 294 void clearSoloModelSet();
295 295
296 std::string getClientName() const { return m_clientName; } 296 virtual std::string getClientName() const override {
297 return m_clientName;
298 }
297 299
298 signals: 300 signals:
299 void playStatusChanged(bool isPlaying); 301 void playStatusChanged(bool isPlaying);
300 302
301 void sampleRateMismatch(sv_samplerate_t requested, 303 void sampleRateMismatch(sv_samplerate_t requested,
308 void audioTimeStretchMultiChannelDisabled(); 310 void audioTimeStretchMultiChannelDisabled();
309 311
310 void activity(QString); 312 void activity(QString);
311 313
312 public slots: 314 public slots:
313 void audioProcessingOverload(); 315 void audioProcessingOverload() override;
314 316
315 protected slots: 317 protected slots:
316 void selectionChanged(); 318 void selectionChanged();
317 void playLoopModeChanged(); 319 void playLoopModeChanged();
318 void playSelectionModeChanged(); 320 void playSelectionModeChanged();