TracktionEngine
Loading...
Searching...
No Matches
engine::TransportControl::ScopedContextAllocator Struct Reference

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

#include <tracktion_TransportControl.h>

Public Member Functions

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

Public Attributes

TransportControl & tc
bool wasAllocated = false
ScopedPlaybackRestarter playbackRestarter { tc }

Detailed Description

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

Constructor & Destructor Documentation

◆ ScopedContextAllocator()

engine::TransportControl::ScopedContextAllocator::ScopedContextAllocator ( TransportControl & o)

◆ ~ScopedContextAllocator()

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

Allocated the Edit if it was allocated on construction.

References tc, and wasAllocated.

Member Data Documentation

◆ tc

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

◆ wasAllocated

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

◆ playbackRestarter

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

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