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
16
namespace
switchboard {
17
23
struct
SWITCHBOARDSDK_EXPORT
AudioBusFormat
{
24
public
:
26
uint
sampleRate
;
27
29
uint
numberOfChannels
;
30
32
uint
numberOfFrames
;
33
37
AudioBusFormat
();
38
46
AudioBusFormat
(uint
sampleRate
, uint
numberOfChannels
, uint
numberOfFrames
);
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
}
switchboard::AudioBusFormat::reset
void reset()
Resets the audio bus format properties.
switchboard::AudioBusFormat::operator==
bool operator==(const AudioBusFormat &other)
Compares two audio bus formats.
switchboard::AudioBusFormat::isSet
bool isSet() const
Returns whether the audio bus format is completely defined.
switchboard::AudioBusFormat::matchBusFormats
static bool matchBusFormats(AudioBusFormat &busFormat1, AudioBusFormat &busFormat2)
Matches two AudioBusFormat instances.
switchboard::AudioBusFormat::numberOfFrames
uint numberOfFrames
Number of frames.
Definition
AudioBusFormat.hpp:32
switchboard::AudioBusFormat::toString
std::string toString() const
Returns a string representing the object.
switchboard::AudioBusFormat::operator!=
bool operator!=(const AudioBusFormat &other)
Compares two audio bus formats.
switchboard::AudioBusFormat::numberOfChannels
uint numberOfChannels
Number of channels.
Definition
AudioBusFormat.hpp:29
switchboard::AudioBusFormat::AudioBusFormat
AudioBusFormat(uint sampleRate, uint numberOfChannels, uint numberOfFrames)
Initializes an AudioBusFormat instance with the provided values.
switchboard::AudioBusFormat::sampleRate
uint sampleRate
Sample rate.
Definition
AudioBusFormat.hpp:26
switchboard::AudioBusFormat::AudioBusFormat
AudioBusFormat()
Initializes an AudioBusFormat instance with zero values.
SwitchboardSDK
include
switchboard_core
AudioBusFormat.hpp
Generated by
1.16.1