Describes the format of an AudioBus instance without the need for the audio data.
More...
#include <AudioBusFormat.hpp>
|
uint | sampleRate |
| Sample rate.
|
|
uint | numberOfChannels |
| Number of channels.
|
|
uint | numberOfFrames |
| Number of frames.
|
|
Describes the format of an AudioBus instance without the need for the audio data.
AudioBusFormat class.
Multiple AudioBusFormat instances can be handled by the AudioBusFormatList class.
◆ AudioBusFormat()
switchboard::AudioBusFormat::AudioBusFormat |
( |
const uint |
sampleRate, |
|
|
const uint |
numberOfChannels, |
|
|
const uint |
numberOfFrames |
|
) |
| |
Initializes an AudioBusFormat instance with the provided values.
- Parameters
-
sampleRate | The sample rate. |
numberOfChannels | The number of channels. |
numberOfFrames | The number of frames. |
◆ isSet()
bool switchboard::AudioBusFormat::isSet |
( |
| ) |
const |
Returns whether the audio bus format is completely defined.
- Returns
- True if all properties are set (non zero), false otherwise.
◆ matchBusFormats()
Matches two AudioBusFormat instances.
If both bus formats are set, their equality will be checked. If one of them is not set, the unset one will match the set one. If none of them are set, the result value will false.
- Parameters
-
busFormat1 | The first bus format. |
busFormat2 | The second bus format. |
- Returns
- True if the two bus formats could be matched successfully, false otherwise.
◆ operator!=()
bool switchboard::AudioBusFormat::operator!= |
( |
const AudioBusFormat & |
other | ) |
|
Compares two audio bus formats.
- Parameters
-
- Returns
- True if the two formats are different, false otherwise.
◆ operator==()
bool switchboard::AudioBusFormat::operator== |
( |
const AudioBusFormat & |
other | ) |
|
Compares two audio bus formats.
- Parameters
-
- Returns
- True if the two formats are exactly the same, false otherwise.
◆ reset()
void switchboard::AudioBusFormat::reset |
( |
| ) |
|
Resets the audio bus format properties.
Sets the property values to zero.
The documentation for this struct was generated from the following files:
- /Users/jenkins/.jenkins/workspace/Switchboard Developer Site - Production/SwitchboardSDK/src/all/AudioGraph/AudioBus/AudioBusFormat.hpp
- /Users/jenkins/.jenkins/workspace/Switchboard Developer Site - Production/SwitchboardSDK/src/all/AudioGraph/AudioBus/AudioBusFormat.cpp