16 #ifndef _AUDIO_PLAY_SOURCE_H_ 17 #define _AUDIO_PLAY_SOURCE_H_ 40 virtual void play(
int startFrame) = 0;
45 virtual void stop() = 0;
Simple interface for audio playback.
virtual int getSourceSampleRate() const =0
Return the sample rate of the source material – any material that wants to play at a different rate w...
virtual int getTargetChannelCount() const =0
Get the number of channels of audio that will be provided to the play target.
virtual bool isPlaying() const =0
Return whether playback is currently supposed to be happening.
virtual void setAuditioningEffect(Auditionable *)=0
Set a plugin or other subclass of Auditionable as an auditioning effect.
virtual int getCurrentPlayingFrame()=0
Return the frame number that is currently expected to be coming out of the speakers.
virtual ~AudioPlaySource()
virtual int getTargetSampleRate() const =0
Return the sample rate set by the target audio device (or the source sample rate if the target hasn't...
virtual bool getOutputLevels(float &left, float &right)=0
Return the current (or thereabouts) output levels in the range 0.0 -> 1.0, for metering purposes.
virtual int getTargetBlockSize() const =0
Get the block size of the target audio device.
virtual void stop()=0
Stop playback.
virtual void play(int startFrame)=0
Start playing from the given frame.