LMMS
Loading...
Searching...
No Matches
LadspaBase.h
Go to the documentation of this file.
1/*
2 * LadspaBase.h - basic declarations concerning LADSPA
3 *
4 * Copyright (c) 2006-2007 Danny McRae <khjklujn/at/users.sourceforge.net>
5 * Copyright (c) 2006-2014 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#ifndef LMMS_LADSPA_BASE_H
27#define LMMS_LADSPA_BASE_H
28
29#include <QRegularExpression>
30
31#include "LadspaManager.h"
32#include "Plugin.h"
33
34namespace lmms
35{
36
37
38class LadspaControl;
39
48
50
72
74 const Plugin::Descriptor * _desc,
75 const QString & _name,
76 const ladspa_key_t & _key )
77{
79 QString file = _key.first;
80 m["file"] = file.remove(QRegularExpression("\\.so$")).remove(QRegularExpression("\\.dll$"));
81 m["plugin"] = _key.second;
82 return Plugin::Descriptor::SubPluginFeatures::Key( _desc, _name, m );
83}
84
85
86} // namespace lmms
87
88#endif // LMMS_LADSPA_BASE_H
Definition LadspaControl.h:50
unsigned * m
Definition inflate.c:1559
float LADSPA_Data
Definition ladspa.h:84
unsigned short uint16_t
Definition mid.cpp:99
Definition AudioAlsa.cpp:35
QPair< QString, QString > ladspa_key_t
Definition LadspaManager.h:47
std::uint16_t ch_cnt_t
Definition LmmsTypes.h:44
BufferRate
Definition LadspaBase.h:40
@ ControlRateInput
Definition LadspaBase.h:45
@ ControlRateOutput
Definition LadspaBase.h:46
@ AudioRateInput
Definition LadspaBase.h:43
@ ChannelIn
Definition LadspaBase.h:41
@ AudioRateOutput
Definition LadspaBase.h:44
@ ChannelOut
Definition LadspaBase.h:42
BufferDataType
Definition LadspaBase.h:49
@ Toggled
Definition LadspaBase.h:49
@ Integer
Definition LadspaBase.h:49
@ Time
Definition LadspaBase.h:49
@ Floating
Definition LadspaBase.h:49
@ Enum
Definition LadspaBase.h:49
Plugin::Descriptor::SubPluginFeatures::Key ladspaKeyToSubPluginKey(const Plugin::Descriptor *_desc, const QString &_name, const ladspa_key_t &_key)
Definition LadspaBase.h:73
QMap< QString, QString > AttributeMap
Definition Plugin.h:137
Definition Plugin.h:92
Definition LadspaBase.h:54
bool suggests_logscale
Definition LadspaBase.h:68
LADSPA_Data max
Definition LadspaBase.h:62
BufferDataType data_type
Definition LadspaBase.h:60
QString name
Definition LadspaBase.h:55
LADSPA_Data * buffer
Definition LadspaBase.h:69
LADSPA_Data value
Definition LadspaBase.h:65
BufferRate rate
Definition LadspaBase.h:59
LADSPA_Data def
Definition LadspaBase.h:64
float scale
Definition LadspaBase.h:61
uint16_t port_id
Definition LadspaBase.h:57
LADSPA_Data min
Definition LadspaBase.h:63
ch_cnt_t proc
Definition LadspaBase.h:56
uint16_t control_id
Definition LadspaBase.h:58
LadspaControl * control
Definition LadspaBase.h:70
static ZCONST char Far None[]
Definition unzip.c:380
struct zdirent * file
Definition win32.c:1500