Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::dsp::PlayheadProcessingGuard Class Reference

RAII helper for Playhead audio processing block. More...

#include <src/dsp/playhead.h>

Public Member Functions

 PlayheadProcessingGuard (Playhead &playhead) noexcept
 Constructor - calls playhead.prepare_for_processing().
 ~PlayheadProcessingGuard () noexcept
 Destructor - calls playhead.finalize_processing().
 PlayheadProcessingGuard (const PlayheadProcessingGuard &)=delete
PlayheadProcessingGuardoperator= (const PlayheadProcessingGuard &)=delete

Detailed Description

RAII helper for Playhead audio processing block.

Automatically calls prepare_for_processing() on construction and finalize_processing() on destruction.

Definition at line 240 of file playhead.h.

Constructor & Destructor Documentation

◆ PlayheadProcessingGuard()

zrythm::dsp::PlayheadProcessingGuard::PlayheadProcessingGuard ( Playhead & playhead)
inlineexplicitnoexcept

Constructor - calls playhead.prepare_for_processing().

Parameters
playheadPlayhead instance to manage

Definition at line 247 of file playhead.h.

◆ ~PlayheadProcessingGuard()

zrythm::dsp::PlayheadProcessingGuard::~PlayheadProcessingGuard ( )
inlinenoexcept

Destructor - calls playhead.finalize_processing().

Definition at line 254 of file playhead.h.


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