Gin
Loading...
Searching...
No Matches
StandalonePlayhead Class Reference

A concrete implementation of AudioPlayHead for standalone plugin use. More...

#include <gin_standaloneaudioprocessorplayer.h>

Inherits juce::AudioPlayHead.

Public Member Functions

 StandalonePlayhead ()=default
juce::Optional< PositionInfo > getPosition () const
 Returns the current position info.
void setPositionInfo (const PositionInfo &info)
 Sets the position info to be returned by getPosition().

Detailed Description

A concrete implementation of AudioPlayHead for standalone plugin use.

Allows external code to set the position info which is then returned when the processor queries the playhead.

Constructor & Destructor Documentation

◆ StandalonePlayhead()

StandalonePlayhead::StandalonePlayhead ( )
default

Member Function Documentation

◆ getPosition()

juce::Optional< PositionInfo > StandalonePlayhead::getPosition ( ) const

Returns the current position info.

Called by the AudioProcessor during processBlock.

◆ setPositionInfo()

void StandalonePlayhead::setPositionInfo ( const PositionInfo & info)

Sets the position info to be returned by getPosition().

Call this before the processor's processBlock to provide timing info.


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