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

JUCE-based implementation of IHardwareAudioInterface. More...

#include <src/dsp/juce_hardware_audio_interface.h>

Inheritance diagram for zrythm::dsp::JuceHardwareAudioInterface:
Collaboration diagram for zrythm::dsp::JuceHardwareAudioInterface:

Public Member Functions

 JuceHardwareAudioInterface (std::shared_ptr< juce::AudioDeviceManager > device_manager)
nframes_t get_block_length () const override
 Returns the current block length (buffer size) in frames.
units::sample_rate_t get_sample_rate () const override
 Returns the current sample rate.
void add_audio_callback (juce::AudioIODeviceCallback *callback) override
 Adds an audio callback to receive audio I/O events.
void remove_audio_callback (juce::AudioIODeviceCallback *callback) override
 Removes an audio callback.
juce::AudioWorkgroup get_device_audio_workgroup () const override
 Returns the audio workgroup for the current device (if available).

Static Public Member Functions

static std::unique_ptr< IHardwareAudioInterfacecreate (std::shared_ptr< juce::AudioDeviceManager > device_manager)
 Creates a JUCE-based hardware audio interface.

Detailed Description

JUCE-based implementation of IHardwareAudioInterface.

Wraps a juce::AudioDeviceManager to provide the hardware audio interface.

Definition at line 20 of file juce_hardware_audio_interface.h.

Member Function Documentation

◆ add_audio_callback()

void zrythm::dsp::JuceHardwareAudioInterface::add_audio_callback ( juce::AudioIODeviceCallback * callback)
overridevirtual

Adds an audio callback to receive audio I/O events.

Implements zrythm::dsp::IHardwareAudioInterface.

◆ get_block_length()

nframes_t zrythm::dsp::JuceHardwareAudioInterface::get_block_length ( ) const
nodiscardoverridevirtual

Returns the current block length (buffer size) in frames.

Implements zrythm::dsp::IHardwareAudioInterface.

◆ get_device_audio_workgroup()

juce::AudioWorkgroup zrythm::dsp::JuceHardwareAudioInterface::get_device_audio_workgroup ( ) const
overridevirtual

Returns the audio workgroup for the current device (if available).

Implements zrythm::dsp::IHardwareAudioInterface.

◆ get_sample_rate()

units::sample_rate_t zrythm::dsp::JuceHardwareAudioInterface::get_sample_rate ( ) const
nodiscardoverridevirtual

Returns the current sample rate.

Implements zrythm::dsp::IHardwareAudioInterface.

◆ remove_audio_callback()

void zrythm::dsp::JuceHardwareAudioInterface::remove_audio_callback ( juce::AudioIODeviceCallback * callback)
overridevirtual

Removes an audio callback.

Implements zrythm::dsp::IHardwareAudioInterface.


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