Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

785 lines
23KB

  1. /*
  2. * Carla Plugin API
  3. * Copyright (C) 2011-2013 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * For a full copy of the GNU General Public License see the GPL.txt file
  16. */
  17. #ifndef __CARLA_PLUGIN_HPP__
  18. #define __CARLA_PLUGIN_HPP__
  19. #include "carla_backend.hpp"
  20. #include "carla_native.h"
  21. #include "carla_utils.hpp"
  22. // Avoid including extra libs here
  23. struct LADSPA_RDF_Descriptor;
  24. typedef void* lo_address;
  25. CARLA_BACKEND_START_NAMESPACE
  26. #if 0
  27. } // Fix editor indentation
  28. #endif
  29. #if 0 //ndef BUILD_BRIDGE
  30. enum PluginBridgeInfoType {
  31. kPluginBridgeAudioCount,
  32. kPluginBridgeMidiCount,
  33. kPluginBridgeParameterCount,
  34. kPluginBridgeProgramCount,
  35. kPluginBridgeMidiProgramCount,
  36. kPluginBridgePluginInfo,
  37. kPluginBridgeParameterInfo,
  38. kPluginBridgeParameterData,
  39. kPluginBridgeParameterRanges,
  40. kPluginBridgeProgramInfo,
  41. kPluginBridgeMidiProgramInfo,
  42. kPluginBridgeConfigure,
  43. kPluginBridgeSetParameterValue,
  44. kPluginBridgeSetDefaultValue,
  45. kPluginBridgeSetProgram,
  46. kPluginBridgeSetMidiProgram,
  47. kPluginBridgeSetCustomData,
  48. kPluginBridgeSetChunkData,
  49. kPluginBridgeUpdateNow,
  50. kPluginBridgeError
  51. };
  52. #endif
  53. enum PluginPostRtEventType {
  54. kPluginPostRtEventNull,
  55. kPluginPostRtEventDebug,
  56. kPluginPostRtEventParameterChange, // param, N, value
  57. kPluginPostRtEventProgramChange, // index
  58. kPluginPostRtEventMidiProgramChange, // index
  59. kPluginPostRtEventNoteOn, // channel, note, velo
  60. kPluginPostRtEventNoteOff // channel, note
  61. };
  62. // -----------------------------------------------------------------------
  63. /*!
  64. * Protected data used in CarlaPlugin and subclasses.\n
  65. * Non-plugin code MUST NEVER have direct access to this.
  66. */
  67. struct CarlaPluginProtectedData;
  68. /*!
  69. * \class CarlaPlugin
  70. *
  71. * \brief Carla Backend base plugin class
  72. *
  73. * This is the base class for all available plugin types available in Carla Backend.\n
  74. * All virtual calls are implemented in this class as fallback, so it's safe to only override needed calls.
  75. *
  76. * \see PluginType
  77. */
  78. class CarlaPlugin
  79. {
  80. public:
  81. /*!
  82. * This is the constructor of the base plugin class.
  83. *
  84. * \param engine The engine which this plugin belongs to, must not be null
  85. * \param id The 'id' of this plugin, must be between 0 and CarlaEngine::maxPluginNumber()
  86. */
  87. CarlaPlugin(CarlaEngine* const engine, const unsigned int id);
  88. /*!
  89. * This is the destructor of the base plugin class.
  90. */
  91. virtual ~CarlaPlugin();
  92. // -------------------------------------------------------------------
  93. // Information (base)
  94. /*!
  95. * Get the plugin's type (ie, a subclass of CarlaPlugin).
  96. *
  97. * \note Plugin bridges will return their respective plugin type, there is no plugin type such as "bridge".\n
  98. * To check if a plugin is a bridge use:
  99. * \code
  100. * if (hints() & PLUGIN_IS_BRIDGE)
  101. * ...
  102. * \endcode
  103. */
  104. virtual PluginType type() const
  105. {
  106. return PLUGIN_NONE;
  107. }
  108. /*!
  109. * Get the plugin's id (as passed in the constructor).
  110. *
  111. * \see setId()
  112. */
  113. unsigned short id() const;
  114. /*!
  115. * Get the plugin's hints.
  116. *
  117. * \see PluginHints
  118. */
  119. unsigned int hints() const;
  120. /*!
  121. * Get the plugin's options.
  122. *
  123. * \see PluginOptions
  124. */
  125. unsigned int options() const;
  126. /*!
  127. * Check if the plugin is enabled.
  128. *
  129. * \see setEnabled()
  130. */
  131. bool enabled() const;
  132. /*!
  133. * Get the plugin's internal name.\n
  134. * This name is unique within all plugins in an engine.
  135. *
  136. * \see getRealName()
  137. */
  138. const char* name() const;
  139. /*!
  140. * Get the currently loaded DLL filename for this plugin.\n
  141. * (Sound kits return their exact filename).
  142. */
  143. const char* filename() const;
  144. /*!
  145. * Get the plugin's category (delay, filter, synth, etc).
  146. */
  147. virtual PluginCategory category()
  148. {
  149. return PLUGIN_CATEGORY_NONE;
  150. }
  151. /*!
  152. * Get the plugin's native unique Id.\n
  153. * May return 0 on plugin types that don't support Ids.
  154. */
  155. virtual long uniqueId()
  156. {
  157. return 0;
  158. }
  159. // -------------------------------------------------------------------
  160. // Information (count)
  161. /*!
  162. * Get the number of audio inputs.
  163. */
  164. virtual uint32_t audioInCount();
  165. /*!
  166. * Get the number of audio outputs.
  167. */
  168. virtual uint32_t audioOutCount();
  169. /*!
  170. * Get the number of MIDI inputs.
  171. */
  172. virtual uint32_t midiInCount();
  173. /*!
  174. * Get the number of MIDI outputs.
  175. */
  176. virtual uint32_t midiOutCount();
  177. /*!
  178. * Get the number of parameters.\n
  179. * To know the number of parameter inputs and outputs separately use getParameterCountInfo() instead.
  180. */
  181. uint32_t parameterCount() const;
  182. /*!
  183. * Get the number of scalepoints for parameter \a parameterId.
  184. */
  185. virtual uint32_t parameterScalePointCount(const uint32_t parameterId);
  186. /*!
  187. * Get the number of programs.
  188. */
  189. uint32_t programCount() const;
  190. /*!
  191. * Get the number of MIDI programs.
  192. */
  193. uint32_t midiProgramCount() const;
  194. /*!
  195. * Get the number of custom data sets.
  196. */
  197. size_t customDataCount() const;
  198. // -------------------------------------------------------------------
  199. // Information (current data)
  200. /*!
  201. * Get the current program number (-1 if unset).
  202. *
  203. * \see setProgram()
  204. */
  205. int32_t currentProgram() const;
  206. /*!
  207. * Get the current MIDI program number (-1 if unset).
  208. *
  209. * \see setMidiProgram()
  210. * \see setMidiProgramById()
  211. */
  212. int32_t currentMidiProgram() const;
  213. /*!
  214. * Get the parameter data of \a parameterId.
  215. */
  216. const ParameterData& parameterData(const uint32_t parameterId) const;
  217. /*!
  218. * Get the parameter ranges of \a parameterId.
  219. */
  220. const ParameterRanges& parameterRanges(const uint32_t parameterId) const;
  221. /*!
  222. * Check if parameter \a parameterId is of output type.
  223. */
  224. bool parameterIsOutput(const uint32_t parameterId) const;
  225. /*!
  226. * Get the MIDI program at \a index.
  227. *
  228. * \see getMidiProgramName()
  229. */
  230. const MidiProgramData& midiProgramData(const uint32_t index) const;
  231. /*!
  232. * Get the custom data set at \a index.
  233. *
  234. * \see setCustomData()
  235. */
  236. const CustomData& customData(const size_t index) const;
  237. /*!
  238. * Get the complete plugin chunk data into \a dataPtr.
  239. *
  240. * \return The size of the chunk or 0 if invalid.
  241. *
  242. * \note Make sure to verify the plugin supports chunks before calling this function!
  243. *
  244. * \see setChunkData()
  245. */
  246. virtual int32_t chunkData(void** const dataPtr);
  247. // -------------------------------------------------------------------
  248. // Information (per-plugin data)
  249. /*!
  250. * Get the current parameter value of \a parameterId.
  251. */
  252. virtual double getParameterValue(const uint32_t parameterId);
  253. /*!
  254. * Get the scalepoint \a scalePointId value of the parameter \a parameterId.
  255. */
  256. virtual double getParameterScalePointValue(const uint32_t parameterId, const uint32_t scalePointId);
  257. /*!
  258. * Get the plugin's label (URI for PLUGIN_LV2).
  259. */
  260. virtual void getLabel(char* const strBuf);
  261. /*!
  262. * Get the plugin's maker.
  263. */
  264. virtual void getMaker(char* const strBuf);
  265. /*!
  266. * Get the plugin's copyright/license.
  267. */
  268. virtual void getCopyright(char* const strBuf);
  269. /*!
  270. * Get the plugin's (real) name.
  271. *
  272. * \see name()
  273. */
  274. virtual void getRealName(char* const strBuf);
  275. /*!
  276. * Get the name of the parameter \a parameterId.
  277. */
  278. virtual void getParameterName(const uint32_t parameterId, char* const strBuf);
  279. /*!
  280. * Get the symbol of the parameter \a parameterId.
  281. */
  282. virtual void getParameterSymbol(const uint32_t parameterId, char* const strBuf);
  283. /*!
  284. * Get the custom text of the parameter \a parameterId.
  285. */
  286. virtual void getParameterText(const uint32_t parameterId, char* const strBuf);
  287. /*!
  288. * Get the unit of the parameter \a parameterId.
  289. */
  290. virtual void getParameterUnit(const uint32_t parameterId, char* const strBuf);
  291. /*!
  292. * Get the scalepoint \a scalePointId label of the parameter \a parameterId.
  293. */
  294. virtual void getParameterScalePointLabel(const uint32_t parameterId, const uint32_t scalePointId, char* const strBuf);
  295. /*!
  296. * Get the name of the program at \a index.
  297. */
  298. void getProgramName(const uint32_t index, char* const strBuf);
  299. /*!
  300. * Get the name of the MIDI program at \a index.
  301. *
  302. * \see getMidiProgramInfo()
  303. */
  304. void getMidiProgramName(const uint32_t index, char* const strBuf);
  305. /*!
  306. * Get information about the plugin's parameter count.\n
  307. * This is used to check how many input, output and total parameters are available.\n
  308. *
  309. * \note Some parameters might not be input or output (ie, invalid).
  310. *
  311. * \see parameterCount()
  312. */
  313. void getParameterCountInfo(uint32_t* const ins, uint32_t* const outs, uint32_t* const total);
  314. // -------------------------------------------------------------------
  315. // Set data (internal stuff)
  316. /*!
  317. * Set the plugin's id to \a id.
  318. *
  319. * \see id()
  320. */
  321. void setId(const unsigned int id);
  322. /*!
  323. * Enable or disable the plugin according to \a yesNo.
  324. *
  325. * When a plugin is disabled, it will never be processed or managed in any way.\n
  326. * To 'bypass' a plugin use setActive() instead.
  327. *
  328. * \see enabled()
  329. */
  330. void setEnabled(const bool yesNo);
  331. /*!
  332. * Set plugin as active according to \a active.
  333. *
  334. * \param sendOsc Send message change over OSC
  335. * \param sendCallback Send message change to registered callback
  336. */
  337. void setActive(const bool active, const bool sendOsc, const bool sendCallback);
  338. /*!
  339. * Set the plugin's dry/wet signal value to \a value.\n
  340. * \a value must be between 0.0 and 1.0.
  341. *
  342. * \param sendOsc Send message change over OSC
  343. * \param sendCallback Send message change to registered callback
  344. */
  345. void setDryWet(double value, const bool sendOsc, const bool sendCallback);
  346. /*!
  347. * Set the plugin's output volume to \a value.\n
  348. * \a value must be between 0.0 and 1.27.
  349. *
  350. * \param sendOsc Send message change over OSC
  351. * \param sendCallback Send message change to registered callback
  352. */
  353. void setVolume(double value, const bool sendOsc, const bool sendCallback);
  354. /*!
  355. * Set the plugin's output left balance value to \a value.\n
  356. * \a value must be between -1.0 and 1.0.
  357. *
  358. * \param sendOsc Send message change over OSC
  359. * \param sendCallback Send message change to registered callback
  360. *
  361. * \note Pure-Stereo plugins only!
  362. */
  363. void setBalanceLeft(double value, const bool sendOsc, const bool sendCallback);
  364. /*!
  365. * Set the plugin's output right balance value to \a value.\n
  366. * \a value must be between -1.0 and 1.0.
  367. *
  368. * \param sendOsc Send message change over OSC
  369. * \param sendCallback Send message change to registered callback
  370. *
  371. * \note Pure-Stereo plugins only!
  372. */
  373. void setBalanceRight(double value, const bool sendOsc, const bool sendCallback);
  374. /*!
  375. * Set the plugin's output panning value to \a value.\n
  376. * \a value must be between -1.0 and 1.0.
  377. *
  378. * \param sendOsc Send message change over OSC
  379. * \param sendCallback Send message change to registered callback
  380. *
  381. * \note Force-Stereo plugins only!
  382. */
  383. void setPanning(double value, const bool sendOsc, const bool sendCallback);
  384. #if 0 //ndef BUILD_BRIDGE
  385. /*!
  386. * BridgePlugin call used to set internal data.
  387. */
  388. virtual int setOscBridgeInfo(const PluginBridgeInfoType type, const int argc, const lo_arg* const* const argv, const char* const types);
  389. #endif
  390. // -------------------------------------------------------------------
  391. // Set data (plugin-specific stuff)
  392. /*!
  393. * Set a plugin's parameter value.
  394. *
  395. * \param parameterId The parameter to change
  396. * \param value The new parameter value, must be within the parameter's range
  397. * \param sendGui Send message change to plugin's custom GUI, if any
  398. * \param sendOsc Send message change over OSC
  399. * \param sendCallback Send message change to registered callback
  400. *
  401. * \see getParameterValue()
  402. */
  403. virtual void setParameterValue(const uint32_t parameterId, double value, const bool sendGui, const bool sendOsc, const bool sendCallback);
  404. /*!
  405. * Set a plugin's parameter value, including internal parameters.\n
  406. * \a rindex can be negative to allow internal parameters change (as defined in InternalParametersIndex).
  407. *
  408. * \see setParameterValue()
  409. * \see setActive()
  410. * \see setDryWet()
  411. * \see setVolume()
  412. * \see setBalanceLeft()
  413. * \see setBalanceRight()
  414. */
  415. void setParameterValueByRIndex(const int32_t rindex, const double value, const bool sendGui, const bool sendOsc, const bool sendCallback);
  416. /*!
  417. * Set parameter's \a parameterId MIDI channel to \a channel.\n
  418. * \a channel must be between 0 and 15.
  419. */
  420. void setParameterMidiChannel(const uint32_t parameterId, uint8_t channel, const bool sendOsc, const bool sendCallback);
  421. /*!
  422. * Set parameter's \a parameterId MIDI CC to \a cc.\n
  423. * \a cc must be between 0 and 95 (0x5F), or -1 for invalid.
  424. */
  425. void setParameterMidiCC(const uint32_t parameterId, int16_t cc, const bool sendOsc, const bool sendCallback);
  426. /*!
  427. * Add a custom data set.\n
  428. * If \a key already exists, its current value will be swapped with \a value.
  429. *
  430. * \param type Type of data used in \a value.
  431. * \param key A key identifing this data set.
  432. * \param value The value of the data set, of type \a type.
  433. * \param sendGui Send message change to plugin's custom GUI, if any
  434. *
  435. * \see customData()
  436. */
  437. virtual void setCustomData(const char* const type, const char* const key, const char* const value, const bool sendGui);
  438. /*!
  439. * Set the complete chunk data as \a stringData.\n
  440. * \a stringData must a base64 encoded string of binary data.
  441. *
  442. * \see chunkData()
  443. *
  444. * \note Make sure to verify the plugin supports chunks before calling this function!
  445. */
  446. virtual void setChunkData(const char* const stringData);
  447. /*!
  448. * Change the current plugin program to \a index.
  449. *
  450. * If \a index is negative the plugin's program will be considered unset.\n
  451. * The plugin's default parameter values will be updated when this function is called.
  452. *
  453. * \param index New program index to use
  454. * \param sendGui Send message change to plugin's custom GUI, if any
  455. * \param sendOsc Send message change over OSC
  456. * \param sendCallback Send message change to registered callback
  457. * \param block Block the audio callback
  458. */
  459. virtual void setProgram(int32_t index, const bool sendGui, const bool sendOsc, const bool sendCallback, const bool block);
  460. /*!
  461. * Change the current MIDI plugin program to \a index.
  462. *
  463. * If \a index is negative the plugin's program will be considered unset.\n
  464. * The plugin's default parameter values will be updated when this function is called.
  465. *
  466. * \param index New program index to use
  467. * \param sendGui Send message change to plugin's custom GUI, if any
  468. * \param sendOsc Send message change over OSC
  469. * \param sendCallback Send message change to registered callback
  470. * \param block Block the audio callback
  471. */
  472. virtual void setMidiProgram(int32_t index, const bool sendGui, const bool sendOsc, const bool sendCallback, const bool block);
  473. /*!
  474. * This is an overloaded call to setMidiProgram().\n
  475. * It changes the current MIDI program using \a bank and \a program values instead of index.
  476. */
  477. void setMidiProgramById(const uint32_t bank, const uint32_t program, const bool sendGui, const bool sendOsc, const bool sendCallback, const bool block);
  478. // -------------------------------------------------------------------
  479. // Set gui stuff
  480. /*!
  481. * Show (or hide) the plugin's custom GUI according to \a yesNo.
  482. *
  483. * \note This function must be always called from the main thread.
  484. */
  485. virtual void showGui(const bool yesNo);
  486. /*!
  487. * Idle the plugin's custom GUI.
  488. *
  489. * \note This function must be always called from the main thread.
  490. */
  491. virtual void idleGui();
  492. // -------------------------------------------------------------------
  493. // Plugin state
  494. /*!
  495. * Reload the plugin's entire state (including programs).\n
  496. * The plugin will be disabled during this call.
  497. */
  498. virtual void reload();
  499. /*!
  500. * Reload the plugin's programs state.
  501. */
  502. virtual void reloadPrograms(const bool init);
  503. /*!
  504. * Tell the plugin to prepare for save.
  505. */
  506. virtual void prepareForSave();
  507. // -------------------------------------------------------------------
  508. // Plugin processing
  509. /*!
  510. * Plugin process callback.
  511. */
  512. virtual void process(float** const inBuffer, float** const outBuffer, const uint32_t frames, const uint32_t framesOffset = 0);
  513. /*!
  514. * Tell the plugin the current buffer size has changed.
  515. */
  516. virtual void bufferSizeChanged(const uint32_t newBufferSize);
  517. /*!
  518. * Tell the plugin the current sample rate has changed.
  519. */
  520. virtual void sampleRateChanged(const double newSampleRate);
  521. /*!
  522. * Recreate latency audio buffers.
  523. */
  524. void recreateLatencyBuffers();
  525. // -------------------------------------------------------------------
  526. // OSC stuff
  527. /*!
  528. * Register this plugin to the engine's OSC client (controller or bridge).
  529. */
  530. void registerToOscClient();
  531. /*!
  532. * Update the plugin's internal OSC data according to \a source and \a url.\n
  533. * This is used for OSC-GUI bridges.
  534. */
  535. void updateOscData(const lo_address& source, const char* const url);
  536. /*!
  537. * Free the plugin's internal OSC memory data.
  538. */
  539. void freeOscData();
  540. /*!
  541. * Show the plugin's OSC based GUI.\n
  542. * This is a handy function that waits for the GUI to respond and automatically asks it to show itself.
  543. */
  544. bool waitForOscGuiShow();
  545. // -------------------------------------------------------------------
  546. // MIDI events
  547. /*!
  548. * Send a single midi note to be processed in the next audio callback.\n
  549. * A note with 0 velocity means note-off.
  550. */
  551. void sendMidiSingleNote(const uint8_t channel, const uint8_t note, const uint8_t velo, const bool sendGui, const bool sendOsc, const bool sendCallback);
  552. /*!
  553. * Send all midi notes off for the next audio callback.\n
  554. * This doesn't send the actual MIDI All-Notes-Off event, but 128 note-offs instead.
  555. */
  556. void sendMidiAllNotesOff();
  557. // -------------------------------------------------------------------
  558. // Post-poned events
  559. /*!
  560. * Post pone an event of type \a type.\n
  561. * The event will be processed later, but as soon as possible.
  562. */
  563. void postponeEvent(const PluginPostRtEventType type, const int32_t value1, const int32_t value2, const double value3);
  564. /*!
  565. * Process all the post-poned events.
  566. * This function must be called from the main thread (ie, idleGui()) if PLUGIN_USES_SINGLE_THREAD is set.
  567. */
  568. void postEventsRun();
  569. /*!
  570. * Tell the UI a parameter has changed.
  571. */
  572. virtual void uiParameterChange(const uint32_t index, const double value);
  573. /*!
  574. * Tell the UI the current program has changed.
  575. */
  576. virtual void uiProgramChange(const uint32_t index);
  577. /*!
  578. * Tell the UI the current midi program has changed.
  579. */
  580. virtual void uiMidiProgramChange(const uint32_t index);
  581. /*!
  582. * Tell the UI a note has been pressed.
  583. */
  584. virtual void uiNoteOn(const uint8_t channel, const uint8_t note, const uint8_t velo);
  585. /*!
  586. * Tell the UI a note has been released.
  587. */
  588. virtual void uiNoteOff(const uint8_t channel, const uint8_t note);
  589. // -------------------------------------------------------------------
  590. // Cleanup
  591. /*!
  592. * Clear the engine client ports of the plugin.
  593. */
  594. virtual void removeClientPorts();
  595. /*!
  596. * Initialize all RT buffers of the plugin.
  597. */
  598. virtual void initBuffers();
  599. /*!
  600. * Delete all temporary buffers of the plugin.
  601. */
  602. virtual void deleteBuffers();
  603. // -------------------------------------------------------------------
  604. // Library functions
  605. /*!
  606. * Open the DLL \a filename.
  607. */
  608. bool libOpen(const char* const filename);
  609. /*!
  610. * Close the DLL previously loaded in libOpen().
  611. */
  612. bool libClose();
  613. /*!
  614. * Get the symbol entry \a symbol of the currently loaded DLL.
  615. */
  616. void* libSymbol(const char* const symbol);
  617. /*!
  618. * Get the last DLL related error.
  619. */
  620. const char* libError(const char* const filename);
  621. // -------------------------------------------------------------------
  622. // Plugin initializers
  623. struct Initializer {
  624. CarlaEngine* const engine;
  625. const char* const filename;
  626. const char* const name;
  627. const char* const label;
  628. };
  629. #ifndef BUILD_BRIDGE
  630. static size_t getNativePluginCount();
  631. static const PluginDescriptor* getNativePluginDescriptor(const size_t index);
  632. static CarlaPlugin* newNative(const Initializer& init);
  633. static CarlaPlugin* newBridge(const Initializer& init, const BinaryType btype, const PluginType ptype, const void* const extra);
  634. #endif
  635. #ifdef WANT_LADSPA
  636. static CarlaPlugin* newLADSPA(const Initializer& init, const void* const extra);
  637. #endif
  638. #ifdef WANT_DSSI
  639. static CarlaPlugin* newDSSI(const Initializer& init, const void* const extra);
  640. #endif
  641. #ifdef WANT_LV2
  642. static CarlaPlugin* newLV2(const Initializer& init);
  643. #endif
  644. #ifdef WANT_VST
  645. static CarlaPlugin* newVST(const Initializer& init);
  646. #endif
  647. #ifdef WANT_LINUXSAMPLER
  648. static CarlaPlugin* newGIG(const Initializer& init);
  649. static CarlaPlugin* newSFZ(const Initializer& init);
  650. #endif
  651. #ifdef WANT_FLUIDSYNTH
  652. static CarlaPlugin* newSF2(const Initializer& init);
  653. #endif
  654. // -------------------------------------------------------------------
  655. protected:
  656. ScopedPointer<CarlaPluginProtectedData> const fData;
  657. private:
  658. CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(CarlaPlugin)
  659. };
  660. /**@}*/
  661. CARLA_BACKEND_END_NAMESPACE
  662. #endif // __CARLA_PLUGIN_HPP__