comparison audio/AudioCallbackPlaySource.h @ 580:298d864113f0 3.0-integration

Fix flickery level meters
author Chris Cannam
date Wed, 11 Jan 2017 17:46:37 +0000
parents b3c35447ef31
children b23bebfdfaba
comparison
equal deleted inserted replaced
579:1a8a8980f39a 580:298d864113f0
186 * target) 186 * target)
187 */ 187 */
188 virtual void setOutputLevels(float left, float right) override; 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 output levels in the range 0.0 -> 1.0, for
192 * 0.0 -> 1.0, for metering purposes. 192 * metering purposes. The values returned are the peak values
193 * since the last time this function was called (after which they
194 * are reset to zero until setOutputLevels is called again by the
195 * driver).
196 *
197 * Return true if the values have been set since this function was
198 * last called (i.e. if they are meaningful). Return false if they
199 * have not been set (in which case both will be zero).
193 */ 200 */
194 virtual bool getOutputLevels(float &left, float &right) override; 201 virtual bool getOutputLevels(float &left, float &right) override;
195 202
196 /** 203 /**
197 * Get the number of channels of audio that in the source models. 204 * Get the number of channels of audio that in the source models.
358 bool m_exiting; 365 bool m_exiting;
359 sv_frame_t m_lastModelEndFrame; 366 sv_frame_t m_lastModelEndFrame;
360 int m_ringBufferSize; 367 int m_ringBufferSize;
361 float m_outputLeft; 368 float m_outputLeft;
362 float m_outputRight; 369 float m_outputRight;
370 bool m_levelsSet;
363 RealTimePluginInstance *m_auditioningPlugin; 371 RealTimePluginInstance *m_auditioningPlugin;
364 bool m_auditioningPluginBypassed; 372 bool m_auditioningPluginBypassed;
365 Scavenger<RealTimePluginInstance> m_pluginScavenger; 373 Scavenger<RealTimePluginInstance> m_pluginScavenger;
366 sv_frame_t m_playStartFrame; 374 sv_frame_t m_playStartFrame;
367 bool m_playStartFramePassed; 375 bool m_playStartFramePassed;