LMMS
Loading...
Searching...
No Matches
WaveShaper.h
Go to the documentation of this file.
1/*
2 * WaveShaper.h - waveshaper effect-plugin
3 *
4 * Copyright (c) 2014 Vesa Kivimäki <contact/dot/diizy/at/nbl/dot/fi>
5 * Copyright (c) 2006-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
6 *
7 * This file is part of LMMS - https://lmms.io
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public
20 * License along with this program (see COPYING); if not, write to the
21 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301 USA.
23 *
24 */
25
26
27#ifndef _WAVESHAPER_H
28#define _WAVESHAPER_H
29
30#include "Effect.h"
31#include "WaveShaperControls.h"
32
33namespace lmms
34{
35
36
38{
39public:
40 WaveShaperEffect( Model * _parent,
41 const Descriptor::SubPluginFeatures::Key * _key );
42 ~WaveShaperEffect() override = default;
43
44 ProcessStatus processImpl(SampleFrame* buf, const f_cnt_t frames) override;
45
47 {
48 return( &m_wsControls );
49 }
50
51
52private:
53
55
56 friend class WaveShaperControls;
57
58} ;
59
60
61} // namespace lmms
62
63
64#endif
Definition EffectControls.h:44
Effect(const Plugin::Descriptor *_desc, Model *_parent, const Descriptor::SubPluginFeatures::Key *_key)
Definition Effect.cpp:41
ProcessStatus
Definition Effect.h:147
Definition Model.h:37
Definition SampleFrame.h:41
EffectControls * controls() override
Definition WaveShaper.h:46
friend class WaveShaperControls
Definition WaveShaper.h:56
~WaveShaperEffect() override=default
WaveShaperEffect(Model *_parent, const Descriptor::SubPluginFeatures::Key *_key)
Definition WaveShaper.cpp:58
WaveShaperControls m_wsControls
Definition WaveShaper.h:54
ProcessStatus processImpl(SampleFrame *buf, const f_cnt_t frames) override
Definition WaveShaper.cpp:68
Definition AudioAlsa.cpp:35
std::uint64_t f_cnt_t
Definition LmmsTypes.h:43