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

Frees the playback context and then re-allocates it upon destruction. More...

Public Member Functions

 ScopedContextAllocator (TransportControl &o)
 Saves whether the Edit was allocated. More...
 
 ~ScopedContextAllocator ()
 Allocated the Edit if it was allocated on construction. More...
 

Public Attributes

TransportControltc
 
bool wasAllocated = false
 
ScopedPlaybackRestarter playbackRestarter { tc }
 

Detailed Description

Frees the playback context and then re-allocates it upon destruction.

Constructor & Destructor Documentation

◆ ScopedContextAllocator()

tracktion::engine::TransportControl::ScopedContextAllocator::ScopedContextAllocator ( TransportControl o)

Saves whether the Edit was allocated.

◆ ~ScopedContextAllocator()

tracktion::engine::TransportControl::ScopedContextAllocator::~ScopedContextAllocator ( )

Allocated the Edit if it was allocated on construction.

References tracktion::engine::TransportControl::ensureContextAllocated(), tc, and wasAllocated.

Member Data Documentation

◆ tc

TransportControl& tracktion::engine::TransportControl::ScopedContextAllocator::tc

Referenced by ~ScopedContextAllocator().

◆ wasAllocated

bool tracktion::engine::TransportControl::ScopedContextAllocator::wasAllocated = false

Referenced by ~ScopedContextAllocator().

◆ playbackRestarter

ScopedPlaybackRestarter tracktion::engine::TransportControl::ScopedContextAllocator::playbackRestarter { tc }

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