Switchboard Extension SDK
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
14namespace switchboard {
15
20class SWITCHBOARDSDK_EXPORT SingleBusAudioSourceNode : public AudioSourceNode {
21public:
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}
AudioSourceNode(const uint numberOfOutputBuses)
AudioSourceNode constructor.
Definition AudioSourceNode.hpp:29
bool setBusFormats(AudioBusFormatList &busFormats) override
Sets bus formats.
virtual bool setBusFormat(AudioBusFormat &busFormat)=0
Sets bus format.
virtual bool produce(AudioBus &bus) SWITCHBOARD_REALTIME=0
Produces audio data in the given bus.
SingleBusAudioSourceNode()
SingleBusAudioSourceNode constructor.
Definition SingleBusAudioSourceNode.hpp:26
bool produce(AudioBusList &buses) SWITCHBOARD_REALTIME override
Produces audio data in the given buses.
Describes the format of an AudioBus instance without the need for the audio data.
Definition AudioBusFormat.hpp:22
Holds a list of AudioBusList instances.
Definition AudioBusFormatList.hpp:24
Represents a stream of audio in one direction.
Definition AudioBus.hpp:23
Holds a list of AudioBus instances.
Definition AudioBusList.hpp:24