|
lmms
Cross-platform music production software
|
#include <Lv2Ports.h>
Public Member Functions | |
| Audio (std::size_t bufferSize, bool isSidechain) | |
| void | copyBuffersFromCore (const SampleFrame *lmmsBuf, unsigned channel, f_cnt_t frames) |
| Copy buffer passed by LMMS into our ports. | |
| void | averageWithBuffersFromCore (const SampleFrame *lmmsBuf, unsigned channel, f_cnt_t frames) |
| Add buffer passed by LMMS into our ports, and halve the result. | |
| void | copyBuffersToCore (SampleFrame *lmmsBuf, unsigned channel, f_cnt_t frames) const |
| Copy our ports into buffers passed by LMMS. | |
| bool | isSideChain () const |
| bool | isOptional () const |
| bool | mustBeUsed () const |
| std::size_t | bufferSize () const |
| Public Member Functions inherited from lmms::Lv2Ports::VisitablePort< Audio, PortBase > | |
| void | accept (Visitor &v) override |
| Public Member Functions inherited from lmms::Lv2Ports::PortBase | |
| virtual void | accept (ConstVisitor &v) const =0 |
| QString | name () const |
| QString | uri () const |
| virtual | ~PortBase ()=default |
| Public Member Functions inherited from lmms::Lv2Ports::Meta | |
| std::vector< PluginIssue > | get (const LilvPlugin *plugin, std::size_t portNum) |
| float | def () const |
| float | min (sample_rate_t sr) const |
| float | max (sample_rate_t sr) const |
Private Attributes | |
| std::vector< float > | m_buffer |
| The buffer where Lv2 reads/writes the data from/to. | |
| bool | m_sidechain |
Friends | |
| struct | lmms::ConnectPortVisitor |
Additional Inherited Members | |
| Public Attributes inherited from lmms::Lv2Ports::PortBase | |
| const LilvPort * | m_port = nullptr |
| const LilvPlugin * | m_plugin = nullptr |
| Public Attributes inherited from lmms::Lv2Ports::Meta | |
| Type | m_type = Type::Unknown |
| Flow | m_flow = Flow::Unknown |
| Vis | m_vis = Vis::Generic |
| bool | m_logarithmic = false |
| bool | m_optional = false |
| bool | m_used = true |
| lmms::Lv2Ports::Audio::Audio | ( | std::size_t | bufferSize, |
| bool | isSidechain ) |
| void lmms::Lv2Ports::Audio::averageWithBuffersFromCore | ( | const SampleFrame * | lmmsBuf, |
| unsigned | channel, | ||
| f_cnt_t | frames ) |
Add buffer passed by LMMS into our ports, and halve the result.
| lmmsBuf | The buffer to average from |
| channel | channel index into each sample frame |
| frames | The length of the buffer lmmsBuf |
|
inline |
| void lmms::Lv2Ports::Audio::copyBuffersFromCore | ( | const SampleFrame * | lmmsBuf, |
| unsigned | channel, | ||
| f_cnt_t | frames ) |
Copy buffer passed by LMMS into our ports.
| lmmsBuf | The buffer to copy from |
| channel | channel index into each sample frame |
| frames | The length of the buffer lmmsBuf |
| void lmms::Lv2Ports::Audio::copyBuffersToCore | ( | SampleFrame * | lmmsBuf, |
| unsigned | channel, | ||
| f_cnt_t | frames ) const |
Copy our ports into buffers passed by LMMS.
| lmmsBuf | The buffer to copy into |
| channel | channel index into each sample frame |
| frames | The length of the buffer lmmsBuf |
|
inline |
|
inline |
|
inline |
|
friend |
|
private |
The buffer where Lv2 reads/writes the data from/to.
|
private |