Switchboard Extension SDK
Loading...
Searching...
No Matches
AudioNode.hpp
1//
2// AudioNode.hpp
3// SwitchboardSDK
4//
5// Created by Balázs Kiss on 2022. 03. 03..
6// Copyright © 2022. Synervoz Inc. All rights reserved.
7//
8
9#pragma once
10
11#include <any>
12#include <map>
13#include <string>
14#include <switchboard/export.h>
15#include <switchboard_core/Node.hpp>
16#include <switchboard_core/SwitchboardCore.hpp>
17#include <vector>
18
19namespace switchboard {
20
25class SWITCHBOARDSDK_EXPORT AudioNode : public Node {
26public:
34
38 ~AudioNode() override = default;
39
46 virtual std::string getDisplayName() const;
47
53 virtual void onGraphStart() {}
54
63 virtual void onGraphStop() {}
64};
65
66}
virtual void onGraphStart()
Called when the audio graph is started.
Definition AudioNode.hpp:53
AudioNode(uint numberOfInputs, uint numberOfOutputs)
AudioNode constructor.
virtual void onGraphStop()
Called when the audio graph is stopped.
Definition AudioNode.hpp:63
~AudioNode() override=default
AudioNode virtual destructor.
virtual std::string getDisplayName() const
Gets the display name of the audio node.
unsigned int numberOfOutputs
The number of outputs (audio buses) for the node.
Definition Node.hpp:92
unsigned int numberOfInputs
The number of inputs (audio buses) for the node.
Definition Node.hpp:89
Node(uint numberOfInputs, uint numberOfOutputs)
Node constructor.