6#include "dsp/graph_node.h"
7#include "dsp/itransport.h"
9#include <gmock/gmock.h>
11namespace zrythm::dsp::graph_test
27 (
noexcept,
override));
35 (std::pair<units::sample_t, units::sample_t>),
38 (
const,
noexcept,
override));
40 (std::pair<units::sample_t, units::sample_t>),
43 (
const,
noexcept,
override));
44 MOCK_METHOD (PlayState, get_play_state, (), (
const,
noexcept,
override));
49 (
const,
noexcept,
override));
50 MOCK_METHOD (
bool, loop_enabled, (), (
const,
noexcept,
override));
51 MOCK_METHOD (
bool, punch_enabled, (), (
const,
noexcept,
override));
57 (
const,
noexcept,
override));
62 (
const,
noexcept,
override));
virtual units::sample_t recording_preroll_frames_remaining() const noexcept=0
Frames remaining to preroll (playing back some time earlier before actually recording/rolling).
virtual bool recording_enabled() const noexcept=0
Returns whether recording is enabled.
virtual std::pair< units::sample_t, units::sample_t > get_loop_range_positions() const noexcept=0
Returns the loop range positions in samples.
virtual std::pair< units::sample_t, units::sample_t > get_punch_range_positions() const noexcept=0
Returns the punch recording range positions in samples.
virtual units::sample_t get_playhead_position_in_audio_thread() const noexcept=0
Get the playhead position.
virtual units::sample_t metronome_countin_frames_remaining() const noexcept=0
Frames remaining for metronome countin.
Interface for objects that can be processed in the DSP graph.
virtual nframes_t get_single_playback_latency() const
Returns the latency of only the given processable, without adding the previous/next latencies.
virtual utils::Utf8String get_node_name() const =0
Returns a human friendly name of the node.
virtual void prepare_for_processing(sample_rate_t sample_rate, nframes_t max_block_length)
Called to allocate resources required for processing.
virtual void release_resources()
Called to release resources allocated by prepare_for_processing().
Lightweight UTF-8 string wrapper with safe conversions.
uint32_t sample_rate_t
Sample rate.
uint32_t nframes_t
Frame count.
Common struct to pass around during processing to avoid repeating the data in function arguments.