DISTRHO Plugin Framework
Classes | Public Member Functions | Public Attributes | List of all members
TimePosition Struct Reference

#include <DistrhoDetails.hpp>

Classes

struct  BarBeatTick
 

Public Member Functions

 TimePosition () noexcept
 
void clear () noexcept
 

Public Attributes

bool playing
 
uint64_t frame
 
struct TimePosition::BarBeatTick bbt
 

Detailed Description

Time position.
The playing and frame values are always valid.
BBT values are only valid when bbt.valid is true.

This struct is inspired by the JACK Transport API.

Constructor & Destructor Documentation

◆ TimePosition()

TimePosition::TimePosition ( )
inlinenoexcept

Default constructor for a time position.

Member Function Documentation

◆ clear()

void TimePosition::clear ( )
inlinenoexcept

Reinitialize this position using the default null initialization.

Member Data Documentation

◆ playing

bool TimePosition::playing

Wherever the host transport is playing/rolling.

◆ frame

uint64_t TimePosition::frame

Current host transport position in frames.

Note
This value is not always monotonic, with some plugin hosts assigning it based on a source that can accumulate rounding errors.

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