Switchboard Extension SDK
Loading...
Searching...
No Matches
AudioBusFormatList.hpp
1
//
2
// AudioBusFormatList.hpp
3
// SwitchboardSDK
4
//
5
// Created by Balazs Kiss on 2022. 06. 23..
6
// Copyright © 2022. Synervoz Inc. All rights reserved.
7
//
8
9
#pragma once
10
11
#include "AudioBusFormat.hpp"
12
13
#include <vector>
14
15
namespace
switchboard {
16
24
struct
AudioBusFormatList
{
25
public
:
29
AudioBusFormatList
() =
default
;
30
34
virtual
~AudioBusFormatList
() =
default
;
35
41
virtual
uint
getNumberOfBuses
()
const
= 0;
42
50
virtual
AudioBusFormat
&
getBusFormat
(
const
uint busIndex)
const
= 0;
51
57
virtual
AudioBusFormatList
&
operator=
(
const
AudioBusFormatList
& other) = 0;
58
62
void
reset
();
63
69
bool
isSet
()
const
;
70
76
bool
isPartlySet
()
const
;
77
85
bool
operator==
(
const
AudioBusFormatList
& other);
86
94
bool
operator!=
(
const
AudioBusFormatList
& other);
95
104
static
bool
matchBusFormats
(
AudioBusFormatList
& busFormats);
105
115
static
bool
matchBusFormats
(
AudioBusFormatList
& busFormatList1,
AudioBusFormatList
& busFormatList2);
116
122
std::string
toString
()
const
;
123
124
AudioBusFormatList
(
const
AudioBusFormatList
&) =
delete
;
125
};
126
127
}
switchboard::AudioBusFormat
Describes the format of an AudioBus instance without the need for the audio data.
Definition
AudioBusFormat.hpp:22
switchboard::AudioBusFormatList::operator==
bool operator==(const AudioBusFormatList &other)
Compares two audio bus format lists.
switchboard::AudioBusFormatList::getNumberOfBuses
virtual uint getNumberOfBuses() const =0
Returns the number of audio bus formats.
switchboard::AudioBusFormatList::isSet
bool isSet() const
Checks whether all audio bus formats are set.
switchboard::AudioBusFormatList::operator!=
bool operator!=(const AudioBusFormatList &other)
Compares two audio bus format lists.
switchboard::AudioBusFormatList::reset
void reset()
Resets all audio bus formats stored in the instance.
switchboard::AudioBusFormatList::matchBusFormats
static bool matchBusFormats(AudioBusFormatList &busFormatList1, AudioBusFormatList &busFormatList2)
Matches all bus formats in two AudioBusFormatList instances.
switchboard::AudioBusFormatList::AudioBusFormatList
AudioBusFormatList()=default
Default constructor for AudioBusFormatList.
switchboard::AudioBusFormatList::matchBusFormats
static bool matchBusFormats(AudioBusFormatList &busFormats)
Matches all bus formats in an AudioBusFormatList instance.
switchboard::AudioBusFormatList::~AudioBusFormatList
virtual ~AudioBusFormatList()=default
Default destructor for AudioBusFormatList.
switchboard::AudioBusFormatList::getBusFormat
virtual AudioBusFormat & getBusFormat(const uint busIndex) const =0
Returns the audio bus format for the specified index.
switchboard::AudioBusFormatList::toString
std::string toString() const
Returns a string representing the object.
switchboard::AudioBusFormatList::isPartlySet
bool isPartlySet() const
Checks whether any of the audio bus formats are set.
switchboard::AudioBusFormatList::operator=
virtual AudioBusFormatList & operator=(const AudioBusFormatList &other)=0
Makes an audio bus format list equal to another audio bus format list.
SwitchboardSDK
include
switchboard_core
AudioBusFormatList.hpp
Generated by
1.14.0