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
16namespace switchboard {
17
25struct SWITCHBOARDSDK_EXPORT AudioBusFormatList {
26public:
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
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}
Describes the format of an AudioBus instance without the need for the audio data.
Definition AudioBusFormat.hpp:23
bool operator==(const AudioBusFormatList &other)
Compares two audio bus format lists.
virtual uint getNumberOfBuses() const =0
Returns the number of audio bus formats.
bool isSet() const
Checks whether all audio bus formats are set.
bool operator!=(const AudioBusFormatList &other)
Compares two audio bus format lists.
void reset()
Resets all audio bus formats stored in the instance.
static bool matchBusFormats(AudioBusFormatList &busFormatList1, AudioBusFormatList &busFormatList2)
Matches all bus formats in two AudioBusFormatList instances.
AudioBusFormatList()=default
Default constructor for AudioBusFormatList.
static bool matchBusFormats(AudioBusFormatList &busFormats)
Matches all bus formats in an AudioBusFormatList instance.
virtual ~AudioBusFormatList()=default
Default destructor for AudioBusFormatList.
virtual AudioBusFormat & getBusFormat(const uint busIndex) const =0
Returns the audio bus format for the specified index.
std::string toString() const
Returns a string representing the object.
bool isPartlySet() const
Checks whether any of the audio bus formats are set.
virtual AudioBusFormatList & operator=(const AudioBusFormatList &other)=0
Makes an audio bus format list equal to another audio bus format list.