Audacity 3.2.0
Public Member Functions | List of all members
anonymous_namespace{PlaybackSchedule.cpp}::OldDefaultPlaybackPolicy Struct Referencefinal

The old default playback policy plays once and consumes no messages. More...

Inheritance diagram for anonymous_namespace{PlaybackSchedule.cpp}::OldDefaultPlaybackPolicy:
[legend]
Collaboration diagram for anonymous_namespace{PlaybackSchedule.cpp}::OldDefaultPlaybackPolicy:
[legend]

Public Member Functions

 ~OldDefaultPlaybackPolicy () override=default
 
- Public Member Functions inherited from PlaybackPolicy
virtual ~PlaybackPolicy ()=0
 
virtual void Initialize (PlaybackSchedule &schedule, double rate)
 Called before starting an audio stream. More...
 
virtual void Finalize (PlaybackSchedule &schedule)
 Called after stopping of an audio stream or an unsuccessful start. More...
 
virtual Mixer::WarpOptions MixerWarpOptions (PlaybackSchedule &schedule)
 Options to use when constructing mixers for each playback track. More...
 
virtual BufferTimes SuggestedBufferTimes (PlaybackSchedule &schedule)
 Provide hints for construction of playback RingBuffer objects. More...
 
virtual bool AllowSeek (PlaybackSchedule &schedule)
 Whether repositioning commands are allowed during playback. More...
 
virtual bool Done (PlaybackSchedule &schedule, unsigned long outputFrames)
 Returns true if schedule.GetSequenceTime() has reached the end of playback. More...
 
virtual double OffsetSequenceTime (PlaybackSchedule &schedule, double offset)
 Called when the play head needs to jump a certain distance. More...
 
virtual std::chrono::milliseconds SleepInterval (PlaybackSchedule &schedule)
 How long to wait between calls to AudioIO::SequenceBufferExchange. More...
 
virtual PlaybackSlice GetPlaybackSlice (PlaybackSchedule &schedule, size_t available)
 Choose length of one fetch of samples from tracks in a call to AudioIO::FillPlayBuffers. More...
 
virtual std::pair< double, double > AdvancedTrackTime (PlaybackSchedule &schedule, double trackTime, size_t nSamples)
 Compute a new point in a track's timeline from an old point and a real duration. More...
 
virtual bool RepositionPlayback (PlaybackSchedule &schedule, const Mixers &playbackMixers, size_t frames, size_t available)
 AudioIO::FillPlayBuffers calls this to update its cursors into tracks for changes of position or speed. More...
 
virtual bool Looping (const PlaybackSchedule &schedule) const
 

Additional Inherited Members

- Public Types inherited from PlaybackPolicy
using Duration = std::chrono::duration< double >
 
using Mixers = std::vector< std::unique_ptr< Mixer > >
 
- Protected Attributes inherited from PlaybackPolicy
double mRate = 0
 

Detailed Description

The old default playback policy plays once and consumes no messages.

Definition at line 149 of file PlaybackSchedule.cpp.

Constructor & Destructor Documentation

◆ ~OldDefaultPlaybackPolicy()

anonymous_namespace{PlaybackSchedule.cpp}::OldDefaultPlaybackPolicy::~OldDefaultPlaybackPolicy ( )
overridedefault

The documentation for this struct was generated from the following file: