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_core/SwitchboardCore.hpp>
12
13#include <vector>
14
15namespace switchboard {
16
23public:
24 SB_WASM_EXPORT(AudioBusFormat)
25
26
28
31
34
39
47 SB_WASM AudioBusFormat(const uint sampleRate, const uint numberOfChannels, const uint numberOfFrames);
48
55 SB_WASM bool isSet() const;
56
61 SB_WASM void reset();
62
70 bool operator==(const AudioBusFormat& other);
71
79 bool operator!=(const AudioBusFormat& other);
80
90 SB_WASM static bool matchBusFormats(AudioBusFormat& busFormat1, AudioBusFormat& busFormat2);
91
97 std::string toString() const;
98};
99
100}
static SB_WASM bool matchBusFormats(AudioBusFormat &busFormat1, AudioBusFormat &busFormat2)
Matches two AudioBusFormat instances.
uint numberOfFrames
Number of frames.
Definition AudioBusFormat.hpp:33
std::string toString() const
Returns a string representing the object.
uint numberOfChannels
Number of channels.
Definition AudioBusFormat.hpp:30
SB_WASM void reset()
Resets the audio bus format properties.
SB_WASM bool isSet() const
Returns whether the audio bus format is completely defined.
uint sampleRate
Sample rate.
Definition AudioBusFormat.hpp:27
AudioBusFormat()
Initializes an AudioBusFormat instance with zero values.