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
15namespace switchboard {
16
25public:
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
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}
Describes the format of an AudioBus instance without the need for the audio data.
Definition AudioBusFormat.hpp:22
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.