Switchboard Extension SDK
Loading...
Searching...
No Matches
AudioBusFormat.hpp
1//
2// AudioBusFormat.hpp
3// SwitchboardSDK
4//
5// Created by Balázs Kiss on 2022. 05. 19..
6// Copyright © 2022. Synervoz Inc. All rights reserved.
7//
8
9#pragma once
10
11#include <switchboard/export.h>
12#include <switchboard_core/SwitchboardCore.hpp>
13
14#include <vector>
15
16namespace switchboard {
17
23struct SWITCHBOARDSDK_EXPORT AudioBusFormat {
24public:
27
30
33
38
47
54 bool isSet() const;
55
60 void reset();
61
69 bool operator==(const AudioBusFormat& other);
70
78 bool operator!=(const AudioBusFormat& other);
79
89 static bool matchBusFormats(AudioBusFormat& busFormat1, AudioBusFormat& busFormat2);
90
96 std::string toString() const;
97};
98
99}
void reset()
Resets the audio bus format properties.
bool operator==(const AudioBusFormat &other)
Compares two audio bus formats.
bool isSet() const
Returns whether the audio bus format is completely defined.
static bool matchBusFormats(AudioBusFormat &busFormat1, AudioBusFormat &busFormat2)
Matches two AudioBusFormat instances.
uint numberOfFrames
Number of frames.
Definition AudioBusFormat.hpp:32
std::string toString() const
Returns a string representing the object.
bool operator!=(const AudioBusFormat &other)
Compares two audio bus formats.
uint numberOfChannels
Number of channels.
Definition AudioBusFormat.hpp:29
AudioBusFormat(uint sampleRate, uint numberOfChannels, uint numberOfFrames)
Initializes an AudioBusFormat instance with the provided values.
uint sampleRate
Sample rate.
Definition AudioBusFormat.hpp:26
AudioBusFormat()
Initializes an AudioBusFormat instance with zero values.