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

Audio hardware input selection for a track. More...

#include <src/dsp/audio_input_selection.h>

Inheritance diagram for zrythm::dsp::AudioInputSelection:
Collaboration diagram for zrythm::dsp::AudioInputSelection:

Public Member Functions

 AudioInputSelection (QObject *parent=nullptr)
QString deviceName () const
void setDeviceName (const QString &name)
Q_SIGNAL void deviceNameChanged ()
int firstChannel () const
void setFirstChannel (int channel)
Q_SIGNAL void firstChannelChanged ()
bool stereo () const
void setStereo (bool s)
Q_SIGNAL void stereoChanged ()

Static Public Attributes

static constexpr auto kDeviceNameKey = "deviceName"sv
static constexpr auto kFirstChannelKey = "firstChannel"sv
static constexpr auto kStereoKey = "stereo"sv

Properties

QString deviceName
int firstChannel
bool stereo

Friends

bool operator== (const AudioInputSelection &a, const AudioInputSelection &b)
void to_json (nlohmann::json &j, const AudioInputSelection &sel)
void from_json (const nlohmann::json &j, AudioInputSelection &sel)

Detailed Description

Audio hardware input selection for a track.

Stores which audio device and channels to use as input. An empty device name means no input is selected.

Definition at line 27 of file audio_input_selection.h.

Constructor & Destructor Documentation

◆ AudioInputSelection()

zrythm::dsp::AudioInputSelection::AudioInputSelection ( QObject * parent = nullptr)
inlineexplicit

Definition at line 37 of file audio_input_selection.h.

Member Function Documentation

◆ firstChannel()

int zrythm::dsp::AudioInputSelection::firstChannel ( ) const
inline

Definition at line 47 of file audio_input_selection.h.

◆ stereo()

bool zrythm::dsp::AudioInputSelection::stereo ( ) const
inline

Definition at line 51 of file audio_input_selection.h.

Field Documentation

◆ kDeviceNameKey

auto zrythm::dsp::AudioInputSelection::kDeviceNameKey = "deviceName"sv
staticconstexpr

Definition at line 58 of file audio_input_selection.h.

◆ kFirstChannelKey

auto zrythm::dsp::AudioInputSelection::kFirstChannelKey = "firstChannel"sv
staticconstexpr

Definition at line 59 of file audio_input_selection.h.

◆ kStereoKey

auto zrythm::dsp::AudioInputSelection::kStereoKey = "stereo"sv
staticconstexpr

Definition at line 60 of file audio_input_selection.h.

Property Documentation

◆ deviceName

QString zrythm::dsp::AudioInputSelection::deviceName
readwrite

Definition at line 30 of file audio_input_selection.h.

◆ firstChannel

int zrythm::dsp::AudioInputSelection::firstChannel
readwrite

Definition at line 31 of file audio_input_selection.h.

◆ stereo

bool zrythm::dsp::AudioInputSelection::stereo
readwrite

Definition at line 32 of file audio_input_selection.h.


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