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 <switchboard/export.h>
12
#include <switchboard_core/AudioBusFormat.hpp>
13
14
#include <vector>
15
16
namespace
switchboard {
17
25
struct
SWITCHBOARDSDK_EXPORT
AudioBusFormatList
{
26
public
:
30
AudioBusFormatList
() =
default
;
31
35
virtual
~AudioBusFormatList
() =
default
;
36
42
virtual
uint
getNumberOfBuses
()
const
= 0;
43
51
virtual
AudioBusFormat
&
getBusFormat
(
const
uint busIndex)
const
= 0;
52
58
virtual
AudioBusFormatList
&
operator=
(
const
AudioBusFormatList
& other) = 0;
59
63
void
reset
();
64
70
bool
isSet
()
const
;
71
77
bool
isPartlySet
()
const
;
78
86
bool
operator==
(
const
AudioBusFormatList
& other);
87
95
bool
operator!=
(
const
AudioBusFormatList
& other);
96
105
static
bool
matchBusFormats
(
AudioBusFormatList
& busFormats);
106
116
static
bool
matchBusFormats
(
AudioBusFormatList
& busFormatList1,
AudioBusFormatList
& busFormatList2);
117
123
std::string
toString
()
const
;
124
125
AudioBusFormatList
(
const
AudioBusFormatList
&) =
delete
;
126
};
127
128
}
switchboard::AudioBusFormat
Describes the format of an AudioBus instance without the need for the audio data.
Definition
AudioBusFormat.hpp:23
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.16.1