aboutsummaryrefslogtreecommitdiffstats
path: root/examples/gain/gainprocessor.h
blob: 8b0ac1c4302e5fe15b7d6bf8fdd7edde46cf5ec2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Qt-Commercial

#ifndef GAINPROCESSOR_H
#define GAINPROCESSOR_H

#include <plugin/coreplugin.h>

using namespace RCLAP_NAMESPACE;

class Gain final : public CorePlugin
{
public:
    Gain(const std::string &pluginPath, const clap_host *host);
    static const clap_plugin_descriptor *descriptor();

private:
    bool init() noexcept override;
    void defineAudioPorts() noexcept;

private:
    uint32_t mChannelCount = 2;
};

#endif // GAINPROCESSOR_H