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 <switchboard/export.h>
12#include <switchboard_core/AudioBus.hpp>
13#include <switchboard_core/AudioBusFormatList.hpp>
14
15#include <vector>
16
17namespace switchboard {
18
25struct SWITCHBOARDSDK_EXPORT AudioBusList {
26public:
30 AudioBusList() = default;
31
35 virtual ~AudioBusList() = default;
36
43
49 virtual uint getNumberOfBuses() const = 0;
50
58 virtual AudioBus& getBus(const uint busIndex) const = 0;
59
66 void copyFrom(const AudioBusList& srcAudioBusList) const;
67
71 void clear() const;
72
73 AudioBusList(const AudioBusList&) = delete;
74 AudioBusList& operator=(const AudioBusList&) = delete;
75};
76
77}
Holds a list of AudioBusList instances.
Definition AudioBusFormatList.hpp:25
Represents a stream of audio in one direction.
Definition AudioBus.hpp:22
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.