TracktionEngine
Public Member Functions | Public Attributes | List of all members
tracktion::graph::PlayHeadState Class Reference

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

Public Member Functions

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

Public Attributes

PlayHeadplayHead
 

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()

tracktion::graph::PlayHeadState::PlayHeadState ( PlayHead ph)

Member Function Documentation

◆ update()

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

◆ isContiguousWithPreviousBlock()

bool tracktion::graph::PlayHeadState::isContiguousWithPreviousBlock ( )
noexcept

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

References didPlayheadJump(), and isFirstBlockOfLoop().

◆ didPlayheadJump()

bool tracktion::graph::PlayHeadState::didPlayheadJump ( )
noexcept

Returns true if the play head jumped.

Referenced by isContiguousWithPreviousBlock().

◆ isFirstBlockOfLoop()

bool tracktion::graph::PlayHeadState::isFirstBlockOfLoop ( )
noexcept

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

Referenced by isContiguousWithPreviousBlock().

◆ isLastBlockOfLoop()

bool tracktion::graph::PlayHeadState::isLastBlockOfLoop ( )
noexcept

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

Member Data Documentation

◆ playHead

PlayHead& tracktion::graph::PlayHeadState::playHead

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