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.

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