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
15
namespace
switchboard {
16
22
struct
AudioBusFormat
{
23
public
:
24
SB_WASM_EXPORT(
AudioBusFormat
)
25
26
27
uint
sampleRate
;
28
30
uint
numberOfChannels
;
31
33
uint
numberOfFrames
;
34
38
AudioBusFormat
();
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
}
switchboard::AudioBusFormat::matchBusFormats
static SB_WASM bool matchBusFormats(AudioBusFormat &busFormat1, AudioBusFormat &busFormat2)
Matches two AudioBusFormat instances.
switchboard::AudioBusFormat::numberOfFrames
uint numberOfFrames
Number of frames.
Definition
AudioBusFormat.hpp:33
switchboard::AudioBusFormat::toString
std::string toString() const
Returns a string representing the object.
switchboard::AudioBusFormat::numberOfChannels
uint numberOfChannels
Number of channels.
Definition
AudioBusFormat.hpp:30
switchboard::AudioBusFormat::reset
SB_WASM void reset()
Resets the audio bus format properties.
switchboard::AudioBusFormat::isSet
SB_WASM bool isSet() const
Returns whether the audio bus format is completely defined.
switchboard::AudioBusFormat::sampleRate
uint sampleRate
Sample rate.
Definition
AudioBusFormat.hpp:27
switchboard::AudioBusFormat::AudioBusFormat
AudioBusFormat()
Initializes an AudioBusFormat instance with zero values.
SwitchboardSDK
include
switchboard_core
AudioBusFormat.hpp
Generated by
1.14.0