Switchboard Extension SDK
Toggle main menu visibility
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
#include <vector>
14
15
namespace
switchboard {
16
22
struct
SWITCHBOARDSDK_EXPORT
AudioBusFormat
{
23
public
:
25
uint
sampleRate
;
26
28
uint
numberOfChannels
;
29
31
uint
numberOfFrames
;
32
36
AudioBusFormat
() SWITCHBOARD_REALTIME;
37
45
AudioBusFormat
(uint
sampleRate
, uint
numberOfChannels
, uint
numberOfFrames
) SWITCHBOARD_REALTIME;
46
53
bool
isSet
() const SWITCHBOARD_REALTIME;
54
59
void
reset
();
60
68
bool
operator==(const
AudioBusFormat
& other) const;
69
77
bool
operator!=(const
AudioBusFormat
& other) const;
78
88
static
bool
matchBusFormats
(
AudioBusFormat
& busFormat1,
AudioBusFormat
& busFormat2);
89
95
std::
string
toString
() const;
96
};
97
98
}
switchboard::AudioBusFormat::reset
void reset()
Resets the audio bus format properties.
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:31
switchboard::AudioBusFormat::toString
std::string toString() const
Returns a string representing the object.
switchboard::AudioBusFormat::AudioBusFormat
AudioBusFormat() SWITCHBOARD_REALTIME
Initializes an AudioBusFormat instance with zero values.
switchboard::AudioBusFormat::numberOfChannels
uint numberOfChannels
Number of channels.
Definition
AudioBusFormat.hpp:28
switchboard::AudioBusFormat::sampleRate
uint sampleRate
Sample rate.
Definition
AudioBusFormat.hpp:25
switchboard::AudioBusFormat::isSet
bool isSet() const SWITCHBOARD_REALTIME
Returns whether the audio bus format is completely defined.
SwitchboardSDK
include
switchboard_core
AudioBusFormat.hpp
Generated by
1.18.0