Switchboard Extension SDK
Loading...
Searching...
No Matches
AudioBusList.hpp
1//
2// AudioBusList.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 "AudioBus.hpp"
12#include "AudioBusFormatList.hpp"
13
14#include <vector>
15
16namespace switchboard {
17
25public:
29 AudioBusList() = default;
30
34 virtual ~AudioBusList() = default;
35
42
48 virtual uint getNumberOfBuses() const = 0;
49
57 virtual AudioBus& getBus(const uint busIndex) const = 0;
58
65 void copyFrom(const AudioBusList& srcAudioBusList) const;
66
70 void clear() const;
71
72 AudioBusList(const AudioBusList&) = delete;
73 AudioBusList& operator=(const AudioBusList&) = delete;
74};
75
76}
Holds a list of AudioBusList instances.
Definition AudioBusFormatList.hpp:24
Represents a stream of audio in one direction.
Definition AudioBus.hpp:21
AudioBusList()=default
Default constructor for AudioBusList.
virtual AudioBus & getBus(const uint busIndex) const =0
Gets an audio bus by its index.
void copyFrom(const AudioBusList &srcAudioBusList) const
Copies another AudioBusList instance.
virtual uint getNumberOfBuses() const =0
Gets the number of audio buses.
void clear() const
Sets the content of all audio buses to zero.
virtual AudioBusFormatList & getFormat()=0
Gets the formats of the audio buses.
virtual ~AudioBusList()=default
Default destructor for AudioBusList.