TracktionEngine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
graph::PlayHeadState Class Reference

Determines how this block releates to other previous render blocks and if the play head has jumped in time. More...

#include <tracktion_PlayHeadState.h>

Public Member Functions

 PlayHeadState (PlayHead &ph)
 
void update (juce::Range< int64_t > referenceSampleRange)
 Call once per block to update the jumped state.
 
bool isContiguousWithPreviousBlock () noexcept
 Returns true if the play head did not jump and this block is contiguous with the previous block.
 
bool didPlayheadJump () noexcept
 Returns true if the play head jumped.
 
bool isFirstBlockOfLoop () noexcept
 Returns true if this is the first block of a loop.
 
bool isLastBlockOfLoop () noexcept
 Returns true if this is the last block of a loop.
 

Public Attributes

PlayHeadplayHead
 
bool isPlayHeadRunning = false
 
bool playheadJumped = false
 
bool lastBlockOfLoop = false
 
bool firstBlockOfLoop = false
 

Detailed Description

Determines how this block releates to other previous render blocks and if the play head has jumped in time.

Constructor & Destructor Documentation

◆ PlayHeadState()

graph::PlayHeadState::PlayHeadState ( PlayHead ph)

Member Function Documentation

◆ update()

void graph::PlayHeadState::update ( juce::Range< int64_t >  referenceSampleRange)

Call once per block to update the jumped state.

Usually called at the same time as the PlayHead::incrementReferenceSampleCount method.

References graph::PlayHead::isPlaying().

Referenced by graph::NodePlayer::processWithPlayHeadState().

◆ isContiguousWithPreviousBlock()

bool graph::PlayHeadState::isContiguousWithPreviousBlock ( )
noexcept

Returns true if the play head did not jump and this block is contiguous with the previous block.

◆ didPlayheadJump()

bool graph::PlayHeadState::didPlayheadJump ( )
noexcept

Returns true if the play head jumped.

◆ isFirstBlockOfLoop()

bool graph::PlayHeadState::isFirstBlockOfLoop ( )
noexcept

Returns true if this is the first block of a loop.

◆ isLastBlockOfLoop()

bool graph::PlayHeadState::isLastBlockOfLoop ( )
noexcept

Returns true if this is the last block of a loop.

Member Data Documentation

◆ playHead

PlayHead& graph::PlayHeadState::playHead

◆ isPlayHeadRunning

bool graph::PlayHeadState::isPlayHeadRunning = false

◆ playheadJumped

bool graph::PlayHeadState::playheadJumped = false

◆ lastBlockOfLoop

bool graph::PlayHeadState::lastBlockOfLoop = false

◆ firstBlockOfLoop

bool graph::PlayHeadState::firstBlockOfLoop = false

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