TracktionEngine
Public Member Functions | Public Attributes | List of all members
tracktion::engine::TransportControl::ScopedPlaybackRestarter Struct Reference

Is an Edit is playing back, this resumes playback when destroyed. More...

Public Member Functions

 ScopedPlaybackRestarter (TransportControl &o)
 Saves the playback state. More...
 
 ~ScopedPlaybackRestarter ()
 Starts playback if playing when constructed. More...
 

Public Attributes

TransportControltc
 
bool wasPlaying = false
 

Detailed Description

Is an Edit is playing back, this resumes playback when destroyed.

Constructor & Destructor Documentation

◆ ScopedPlaybackRestarter()

tracktion::engine::TransportControl::ScopedPlaybackRestarter::ScopedPlaybackRestarter ( TransportControl o)

Saves the playback state.

◆ ~ScopedPlaybackRestarter()

tracktion::engine::TransportControl::ScopedPlaybackRestarter::~ScopedPlaybackRestarter ( )

Starts playback if playing when constructed.

Member Data Documentation

◆ tc

TransportControl& tracktion::engine::TransportControl::ScopedPlaybackRestarter::tc

◆ wasPlaying

bool tracktion::engine::TransportControl::ScopedPlaybackRestarter::wasPlaying = false

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