Switchboard Extension SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
SingleBusAudioSourceNode.hpp
1
//
2
// SingleBusAudioSourceNode.hpp
3
// SwitchboardSDK
4
//
5
// Created by Balázs Kiss on 2022. 06. 04..
6
// Copyright © 2022. Synervoz Inc. All rights reserved.
7
//
8
9
#pragma once
10
11
#include <switchboard/export.h>
12
#include <switchboard_core/AudioSourceNode.hpp>
13
14
namespace
switchboard {
15
20
class
SWITCHBOARDSDK_EXPORT
SingleBusAudioSourceNode
:
public
AudioSourceNode
{
21
public
:
26
SingleBusAudioSourceNode
() :
AudioSourceNode
(1) {};
27
36
virtual
bool
setBusFormat
(
AudioBusFormat
& busFormat) = 0;
37
46
virtual
bool
produce
(
AudioBus
& bus) SWITCHBOARD_REALTIME = 0;
47
48
// MARK: Overridden methods
49
50
bool
setBusFormats
(
AudioBusFormatList
& busFormats)
override
;
51
bool
produce
(
AudioBusList
& buses) SWITCHBOARD_REALTIME
override
;
52
};
53
54
}
switchboard::AudioSourceNode::AudioSourceNode
AudioSourceNode(const uint numberOfOutputBuses)
AudioSourceNode constructor.
Definition
AudioSourceNode.hpp:29
switchboard::SingleBusAudioSourceNode::setBusFormats
bool setBusFormats(AudioBusFormatList &busFormats) override
Sets bus formats.
switchboard::SingleBusAudioSourceNode::setBusFormat
virtual bool setBusFormat(AudioBusFormat &busFormat)=0
Sets bus format.
switchboard::SingleBusAudioSourceNode::produce
virtual bool produce(AudioBus &bus) SWITCHBOARD_REALTIME=0
Produces audio data in the given bus.
switchboard::SingleBusAudioSourceNode::SingleBusAudioSourceNode
SingleBusAudioSourceNode()
SingleBusAudioSourceNode constructor.
Definition
SingleBusAudioSourceNode.hpp:26
switchboard::SingleBusAudioSourceNode::produce
bool produce(AudioBusList &buses) SWITCHBOARD_REALTIME override
Produces audio data in the given buses.
switchboard::AudioBusFormat
Describes the format of an AudioBus instance without the need for the audio data.
Definition
AudioBusFormat.hpp:22
switchboard::AudioBusFormatList
Holds a list of AudioBusList instances.
Definition
AudioBusFormatList.hpp:24
switchboard::AudioBus
Represents a stream of audio in one direction.
Definition
AudioBus.hpp:23
switchboard::AudioBusList
Holds a list of AudioBus instances.
Definition
AudioBusList.hpp:24
SwitchboardSDK
include
switchboard_core
SingleBusAudioSourceNode.hpp
Generated by
1.18.0