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.

739 lines
19KB

  1. /*
  2. * Carla Host 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 doc/GPL.txt file.
  16. */
  17. #ifndef CARLA_HOST_HPP_INCLUDED
  18. #define CARLA_HOST_HPP_INCLUDED
  19. #include "CarlaBackend.hpp"
  20. /*!
  21. * @defgroup CarlaHostAPI Carla Host API
  22. *
  23. * The Carla Host API.
  24. *
  25. * This API makes it possible to use the Carla Backend in a Host application.\n
  26. * All functions are C-compatible, making it possible to use this API in non-C++ hosts.
  27. *
  28. * None of the returned values in this API calls need to be deleted or free'd.\n
  29. * When a function fails (returns false or NULL), use carla_get_last_error() to find out what went wrong.
  30. *
  31. * @{
  32. */
  33. /*!
  34. * @defgroup HelperTypedefs Helper typedefs
  35. *
  36. * Basic typedefs to help make code cleaner.
  37. * @{
  38. */
  39. typedef CarlaBackend::BinaryType CarlaBinaryType;
  40. typedef CarlaBackend::PluginType CarlaPluginType;
  41. typedef CarlaBackend::PluginCategory CarlaPluginCategory;
  42. typedef CarlaBackend::OptionsType CarlaOptionsType;
  43. typedef CarlaBackend::CallbackType CarlaCallbackType;
  44. typedef CarlaBackend::CallbackFunc CarlaCallbackFunc;
  45. typedef CarlaBackend::ParameterData CarlaParameterData;
  46. typedef CarlaBackend::ParameterRanges CarlaParameterRanges;
  47. typedef CarlaBackend::MidiProgramData CarlaMidiProgramData;
  48. typedef CarlaBackend::CustomData CarlaCustomData;
  49. /**@}*/
  50. /*!
  51. * Plugin information.
  52. * \see carla_get_plugin_info()
  53. */
  54. struct CarlaPluginInfo {
  55. CarlaPluginType type;
  56. CarlaPluginCategory category;
  57. unsigned int hints;
  58. unsigned int optionsAvailable;
  59. unsigned int optionsEnabled;
  60. const char* binary;
  61. const char* name;
  62. const char* label;
  63. const char* maker;
  64. const char* copyright;
  65. const char* iconName;
  66. long uniqueId;
  67. uint32_t latency;
  68. #ifndef DOXYGEN
  69. CarlaPluginInfo()
  70. : type(CarlaBackend::PLUGIN_NONE),
  71. category(CarlaBackend::PLUGIN_CATEGORY_NONE),
  72. hints(0x0),
  73. optionsAvailable(0x0),
  74. optionsEnabled(0x0),
  75. binary(nullptr),
  76. name(nullptr),
  77. label(nullptr),
  78. maker(nullptr),
  79. copyright(nullptr),
  80. iconName(nullptr),
  81. uniqueId(0),
  82. latency(0) {}
  83. ~CarlaPluginInfo()
  84. {
  85. if (label != nullptr)
  86. {
  87. delete[] label;
  88. label = nullptr;
  89. }
  90. if (maker != nullptr)
  91. {
  92. delete[] maker;
  93. maker = nullptr;
  94. }
  95. if (copyright != nullptr)
  96. {
  97. delete[] copyright;
  98. copyright = nullptr;
  99. }
  100. }
  101. #endif
  102. };
  103. /*!
  104. * Native plugin information.
  105. * \see carla_get_internal_plugin_info()
  106. */
  107. struct CarlaNativePluginInfo {
  108. CarlaPluginCategory category;
  109. unsigned int hints;
  110. uint32_t audioIns;
  111. uint32_t audioOuts;
  112. uint32_t midiIns;
  113. uint32_t midiOuts;
  114. uint32_t parameterIns;
  115. uint32_t parameterOuts;
  116. const char* name;
  117. const char* label;
  118. const char* maker;
  119. const char* copyright;
  120. #ifndef DOXYGEN
  121. CarlaNativePluginInfo()
  122. : category(CarlaBackend::PLUGIN_CATEGORY_NONE),
  123. hints(0x0),
  124. audioIns(0),
  125. audioOuts(0),
  126. midiIns(0),
  127. midiOuts(0),
  128. parameterIns(0),
  129. parameterOuts(0),
  130. name(nullptr),
  131. label(nullptr),
  132. maker(nullptr),
  133. copyright(nullptr) {}
  134. #endif
  135. };
  136. /*!
  137. * Port count information, used for Audio and MIDI ports and parameters.
  138. * \see carla_get_audio_port_count_info()
  139. * \see carla_get_midi_port_count_info()
  140. * \see carla_get_parameter_count_info()
  141. */
  142. struct CarlaPortCountInfo {
  143. uint32_t ins;
  144. uint32_t outs;
  145. uint32_t total;
  146. #ifndef DOXYGEN
  147. CarlaPortCountInfo()
  148. : ins(0),
  149. outs(0),
  150. total(0) {}
  151. #endif
  152. };
  153. /*!
  154. * Parameter information.
  155. * \see carla_get_parameter_info()
  156. */
  157. struct CarlaParameterInfo {
  158. const char* name;
  159. const char* symbol;
  160. const char* unit;
  161. uint32_t scalePointCount;
  162. #ifndef DOXYGEN
  163. CarlaParameterInfo()
  164. : name(nullptr),
  165. symbol(nullptr),
  166. unit(nullptr),
  167. scalePointCount(0) {}
  168. ~CarlaParameterInfo()
  169. {
  170. if (name != nullptr)
  171. {
  172. delete[] name;
  173. name = nullptr;
  174. }
  175. if (symbol != nullptr)
  176. {
  177. delete[] symbol;
  178. symbol = nullptr;
  179. }
  180. if (unit != nullptr)
  181. {
  182. delete[] unit;
  183. unit = nullptr;
  184. }
  185. }
  186. #endif
  187. };
  188. /*!
  189. * Parameter scale point information.
  190. * \see carla_get_parameter_scalepoint_info()
  191. */
  192. struct CarlaScalePointInfo {
  193. float value;
  194. const char* label;
  195. #ifndef DOXYGEN
  196. CarlaScalePointInfo()
  197. : value(0.0f),
  198. label(nullptr) {}
  199. ~CarlaScalePointInfo()
  200. {
  201. if (label != nullptr)
  202. {
  203. delete[] label;
  204. label = nullptr;
  205. }
  206. }
  207. #endif
  208. };
  209. /*!
  210. * Transport information.
  211. * \see carla_get_transport_info()
  212. */
  213. struct CarlaTransportInfo {
  214. bool playing;
  215. uint64_t frame;
  216. int32_t bar;
  217. int32_t beat;
  218. int32_t tick;
  219. double bpm;
  220. #ifndef DOXYGEN
  221. CarlaTransportInfo()
  222. : playing(false),
  223. frame(0),
  224. bar(0),
  225. beat(0),
  226. bpm(0.0) {}
  227. #endif
  228. };
  229. /*!
  230. * Get the complete license text of used third-party code and features.\n
  231. * Returned string is in basic html format.
  232. */
  233. CARLA_EXPORT const char* carla_get_extended_license_text();
  234. /*!
  235. * Get the supported file types in carla_load_filename().\n
  236. * Returned string uses this syntax:
  237. * \code
  238. * "*.ext1;*.ext2;*.ext3"
  239. * \endcode
  240. */
  241. CARLA_EXPORT const char* carla_get_supported_file_types();
  242. /*!
  243. * Get how many engine drivers are available to use.
  244. */
  245. CARLA_EXPORT unsigned int carla_get_engine_driver_count();
  246. /*!
  247. * Get the engine driver name \a index.
  248. */
  249. CARLA_EXPORT const char* carla_get_engine_driver_name(unsigned int index);
  250. /*!
  251. * Get the device names of the engine driver at \a index (for use in non-JACK drivers).\n
  252. * May return NULL.
  253. */
  254. CARLA_EXPORT const char** carla_get_engine_driver_device_names(unsigned int index);
  255. /*!
  256. * Get how many internal plugins are available to use.
  257. */
  258. CARLA_EXPORT unsigned int carla_get_internal_plugin_count();
  259. /*!
  260. * Get information about the internal plugin \a internalPluginId.
  261. */
  262. CARLA_EXPORT const CarlaNativePluginInfo* carla_get_internal_plugin_info(unsigned int internalPluginId);
  263. /*!
  264. * Initialize the engine with driver \a driverName, using \a clientName for its internal name.\n
  265. * Make sure to call carla_engine_idle() at regular intervals afterwards.
  266. */
  267. CARLA_EXPORT bool carla_engine_init(const char* driverName, const char* clientName);
  268. #ifdef BUILD_BRIDGE
  269. /*!
  270. * Initialize the engine in bridged mode.
  271. */
  272. CARLA_EXPORT bool carla_engine_init_bridge(const char* audioBaseName, const char* controlBaseName, const char* clientName);
  273. #endif
  274. /*!
  275. * Close the running engine.\n
  276. * This function always closes the engine even if it returns false.\n
  277. * When false is returned, something went wrong when closing the engine, but it was still closed nonetheless.
  278. */
  279. CARLA_EXPORT bool carla_engine_close();
  280. /*!
  281. * Idle the running engine.\n
  282. * \note This should never be called if the engine is not running.
  283. */
  284. CARLA_EXPORT void carla_engine_idle();
  285. /*!
  286. * Check if the engine is running.
  287. */
  288. CARLA_EXPORT bool carla_is_engine_running();
  289. /*!
  290. * Tell the engine it's about to close.\n
  291. * This is used to prevent the engine thread(s) from reactivating.
  292. */
  293. CARLA_EXPORT void carla_set_engine_about_to_close();
  294. /*!
  295. * Set the engine callback function to \a func.
  296. * Use \a ptr to pass a custom pointer to the callback.
  297. */
  298. CARLA_EXPORT void carla_set_engine_callback(CarlaCallbackFunc func, void* ptr);
  299. /*!
  300. * Set the engine option \a option.\n
  301. * With the exception of OPTION_PROCESS_NAME, OPTION_TRANSPORT_MODE and OPTION_PATH_*,
  302. * this function should not be called when the engine is running.
  303. */
  304. CARLA_EXPORT void carla_set_engine_option(CarlaOptionsType option, int value, const char* valueStr);
  305. /*!
  306. * Load \a filename of any type.\n
  307. * This will try to load a generic file as a plugin,
  308. * either by direct handling (GIG, SF2 and SFZ) or by using an internal plugin (like Audio and MIDI).
  309. * \see carla_get_supported_file_types()
  310. */
  311. CARLA_EXPORT bool carla_load_filename(const char* filename);
  312. /*!
  313. * Load \a filename project file.\n
  314. * (project files have *.carxp extension)
  315. * \note Already loaded plugins are not removed; call carla_remove_all_plugins() first if needed.
  316. */
  317. CARLA_EXPORT bool carla_load_project(const char* filename);
  318. /*!
  319. * Save current project to \a filename.\n
  320. * (project files have *.carxp extension)
  321. */
  322. CARLA_EXPORT bool carla_save_project(const char* filename);
  323. /*!
  324. * Connect patchbay ports \a portA and \a portB.
  325. */
  326. CARLA_EXPORT bool carla_patchbay_connect(int portA, int portB);
  327. /*!
  328. * Disconnect patchbay connection \a connectionId.
  329. */
  330. CARLA_EXPORT bool carla_patchbay_disconnect(int connectionId);
  331. /*!
  332. * Force the engine to resend all patchbay clients, ports and connections again.
  333. */
  334. CARLA_EXPORT bool carla_patchbay_refresh();
  335. /*!
  336. * Start playback of the engine transport.
  337. */
  338. CARLA_EXPORT void carla_transport_play();
  339. /*!
  340. * Pause the engine transport.
  341. */
  342. CARLA_EXPORT void carla_transport_pause();
  343. /*!
  344. * Relocate the engine transport to \a frames.
  345. */
  346. CARLA_EXPORT void carla_transport_relocate(uint32_t frames);
  347. /*!
  348. * Get the current transport frame.
  349. */
  350. CARLA_EXPORT uint64_t carla_get_current_transport_frame();
  351. /*!
  352. * Get the engine transport information.
  353. */
  354. CARLA_EXPORT const CarlaTransportInfo* carla_get_transport_info();
  355. /*!
  356. * Add new plugin.\n
  357. * If you don't know the binary type, use BINARY_NATIVE.
  358. */
  359. CARLA_EXPORT bool carla_add_plugin(CarlaBinaryType btype, CarlaPluginType ptype, const char* filename, const char* name, const char* label, const void* extraPtr);
  360. /*!
  361. * Remove plugin with id \a pluginId.
  362. */
  363. CARLA_EXPORT bool carla_remove_plugin(unsigned int pluginId);
  364. /*!
  365. * Remove all plugins.
  366. */
  367. CARLA_EXPORT bool carla_remove_all_plugins();
  368. /*!
  369. * Rename plugin with id \a pluginId to \a newName. \n
  370. * Returns the new name, or NULL if the operation failed.
  371. */
  372. CARLA_EXPORT const char* carla_rename_plugin(unsigned int pluginId, const char* newName);
  373. /*!
  374. * Clone plugin with id \a pluginId.
  375. */
  376. CARLA_EXPORT bool carla_clone_plugin(unsigned int pluginId);
  377. /*!
  378. * Prepare replace of plugin with id \a pluginId. \n
  379. * The next call to carla_add_plugin() will use this id, replacing the current plugin.
  380. * \note This function requires carla_add_plugin() to be called afterwards as soon as possible.
  381. */
  382. CARLA_EXPORT bool carla_replace_plugin(unsigned int pluginId);
  383. /*!
  384. * Switch plugins with id \a pluginIdA and \a pluginIdB.
  385. */
  386. CARLA_EXPORT bool carla_switch_plugins(unsigned int pluginIdA, unsigned int pluginIdB);
  387. /*!
  388. * Load the plugin state at \a filename.\n
  389. * (Plugin states have *.carxs extension).
  390. * \see carla_save_plugin_state()
  391. */
  392. CARLA_EXPORT bool carla_load_plugin_state(unsigned int pluginId, const char* filename);
  393. /*!
  394. * Load the plugin state at \a filename.\n
  395. * (Plugin states have *.carxs extension).
  396. * \see carla_load_plugin_state()
  397. */
  398. CARLA_EXPORT bool carla_save_plugin_state(unsigned int pluginId, const char* filename);
  399. /*!
  400. * Get a plugin's information.
  401. */
  402. CARLA_EXPORT const CarlaPluginInfo* carla_get_plugin_info(unsigned int pluginId);
  403. /*!
  404. * Get a plugin's audio port count information.
  405. */
  406. CARLA_EXPORT const CarlaPortCountInfo* carla_get_audio_port_count_info(unsigned int pluginId);
  407. /*!
  408. * Get a plugin's midi port count information.
  409. */
  410. CARLA_EXPORT const CarlaPortCountInfo* carla_get_midi_port_count_info(unsigned int pluginId);
  411. /*!
  412. * Get a plugin's parameter count information.
  413. */
  414. CARLA_EXPORT const CarlaPortCountInfo* carla_get_parameter_count_info(unsigned int pluginId);
  415. /*!
  416. * * Get a plugin's parameter information.
  417. */
  418. CARLA_EXPORT const CarlaParameterInfo* carla_get_parameter_info(unsigned int pluginId, uint32_t parameterId);
  419. /*!
  420. * Get a plugin's parameter scale point information.
  421. */
  422. CARLA_EXPORT const CarlaScalePointInfo* carla_get_parameter_scalepoint_info(unsigned int pluginId, uint32_t parameterId, uint32_t scalePointId);
  423. /*!
  424. * Get a plugin's parameter data.
  425. */
  426. CARLA_EXPORT const CarlaParameterData* carla_get_parameter_data(unsigned int pluginId, uint32_t parameterId);
  427. /*!
  428. * Get a plugin's parameter ranges.
  429. */
  430. CARLA_EXPORT const CarlaParameterRanges* carla_get_parameter_ranges(unsigned int pluginId, uint32_t parameterId);
  431. /*!
  432. * Get a plugin's midi program data.
  433. */
  434. CARLA_EXPORT const CarlaMidiProgramData* carla_get_midi_program_data(unsigned int pluginId, uint32_t midiProgramId);
  435. /*!
  436. * Get a plugin's custom data.
  437. */
  438. CARLA_EXPORT const CarlaCustomData* carla_get_custom_data(unsigned int pluginId, uint32_t customDataId);
  439. /*!
  440. * Get a plugin's chunk data.
  441. */
  442. CARLA_EXPORT const char* carla_get_chunk_data(unsigned int pluginId);
  443. /*!
  444. * Get how many parameters a plugin has.
  445. */
  446. CARLA_EXPORT uint32_t carla_get_parameter_count(unsigned int pluginId);
  447. /*!
  448. * Get how many programs a plugin has.
  449. */
  450. CARLA_EXPORT uint32_t carla_get_program_count(unsigned int pluginId);
  451. /*!
  452. * Get how many midi programs a plugin has.
  453. */
  454. CARLA_EXPORT uint32_t carla_get_midi_program_count(unsigned int pluginId);
  455. /*!
  456. * Get how many custom data sets a plugin has.
  457. * \see carla_prepare_for_save()
  458. */
  459. CARLA_EXPORT uint32_t carla_get_custom_data_count(unsigned int pluginId);
  460. /*!
  461. * Get a plugin's custom parameter text display.
  462. * \see PARAMETER_USES_CUSTOM_TEXT
  463. */
  464. CARLA_EXPORT const char* carla_get_parameter_text(unsigned int pluginId, uint32_t parameterId);
  465. /*!
  466. * Get a plugin's program name.
  467. */
  468. CARLA_EXPORT const char* carla_get_program_name(unsigned int pluginId, uint32_t programId);
  469. /*!
  470. * Get a plugin's midi program name.
  471. */
  472. CARLA_EXPORT const char* carla_get_midi_program_name(unsigned int pluginId, uint32_t midiProgramId);
  473. /*!
  474. * Get the plugin's real name.\n
  475. * This is the name the plugin uses to identify itself; may not be unique.
  476. */
  477. CARLA_EXPORT const char* carla_get_real_plugin_name(unsigned int pluginId);
  478. /*!
  479. * Get the current plugin's program index.
  480. */
  481. CARLA_EXPORT int32_t carla_get_current_program_index(unsigned int pluginId);
  482. /*!
  483. * Get the current plugin's midi program index.
  484. */
  485. CARLA_EXPORT int32_t carla_get_current_midi_program_index(unsigned int pluginId);
  486. /*!
  487. * Get a plugin's default parameter value.
  488. */
  489. CARLA_EXPORT float carla_get_default_parameter_value(unsigned int pluginId, uint32_t parameterId);
  490. /*!
  491. * Get a plugin's current parameter value.
  492. */
  493. CARLA_EXPORT float carla_get_current_parameter_value(unsigned int pluginId, uint32_t parameterId);
  494. /*!
  495. * Get a plugin's input peak value.\n
  496. * \a portId must only be either 1 or 2
  497. */
  498. CARLA_EXPORT float carla_get_input_peak_value(unsigned int pluginId, unsigned short portId);
  499. /*!
  500. * Get a plugin's output peak value.\n
  501. * \a portId must only be either 1 or 2
  502. */
  503. CARLA_EXPORT float carla_get_output_peak_value(unsigned int pluginId, unsigned short portId);
  504. /*!
  505. * Enable a plugin's option.
  506. * \see PluginOptions
  507. */
  508. CARLA_EXPORT void carla_set_option(unsigned int pluginId, unsigned int option, bool yesNo);
  509. /*!
  510. * Enable or disable a plugin according to \a onOff.
  511. */
  512. CARLA_EXPORT void carla_set_active(unsigned int pluginId, bool onOff);
  513. #ifndef BUILD_BRIDGE
  514. /*!
  515. * Change a plugin's internal drywet value to \a value.
  516. */
  517. CARLA_EXPORT void carla_set_drywet(unsigned int pluginId, float value);
  518. /*!
  519. * Change a plugin's internal volume value to \a value.
  520. */
  521. CARLA_EXPORT void carla_set_volume(unsigned int pluginId, float value);
  522. /*!
  523. * Change a plugin's internal balance-left value to \a value.
  524. */
  525. CARLA_EXPORT void carla_set_balance_left(unsigned int pluginId, float value);
  526. /*!
  527. * Change a plugin's internal balance-right value to \a value.
  528. */
  529. CARLA_EXPORT void carla_set_balance_right(unsigned int pluginId, float value);
  530. /*!
  531. * Change a plugin's internal panning value to \a value.
  532. */
  533. CARLA_EXPORT void carla_set_panning(unsigned int pluginId, float value);
  534. #endif
  535. /*!
  536. * Change a plugin's internal control channel to \a channel.
  537. */
  538. CARLA_EXPORT void carla_set_ctrl_channel(unsigned int pluginId, int8_t channel);
  539. /*!
  540. * Set the plugin's parameter \a parameterId to \a value.
  541. */
  542. CARLA_EXPORT void carla_set_parameter_value(unsigned int pluginId, uint32_t parameterId, float value);
  543. #ifndef BUILD_BRIDGE
  544. /*!
  545. * Set the plugin's parameter \a parameterId midi channel to \a channel.
  546. */
  547. CARLA_EXPORT void carla_set_parameter_midi_channel(unsigned int pluginId, uint32_t parameterId, uint8_t channel);
  548. /*!
  549. * Set the plugin's parameter \a parameterId midi cc to \a cc.
  550. */
  551. CARLA_EXPORT void carla_set_parameter_midi_cc(unsigned int pluginId, uint32_t parameterId, int16_t cc);
  552. #endif
  553. /*!
  554. * Change a plugin's program to \a programId.
  555. */
  556. CARLA_EXPORT void carla_set_program(unsigned int pluginId, uint32_t programId);
  557. /*!
  558. * Change a plugin's midi program to \a midiProgramId.
  559. */
  560. CARLA_EXPORT void carla_set_midi_program(unsigned int pluginId, uint32_t midiProgramId);
  561. /*!
  562. * Set a plugin's custom data set.
  563. */
  564. CARLA_EXPORT void carla_set_custom_data(unsigned int pluginId, const char* type, const char* key, const char* value);
  565. /*!
  566. * Set a plugin's chunk data.
  567. */
  568. CARLA_EXPORT void carla_set_chunk_data(unsigned int pluginId, const char* chunkData);
  569. /*!
  570. * Tell a plugin to prepare for save.\n
  571. * This should be called before carla_get_custom_data_count().
  572. */
  573. CARLA_EXPORT void carla_prepare_for_save(unsigned int pluginId);
  574. #ifndef BUILD_BRIDGE
  575. /*!
  576. * Send a single note of a plugin.\n
  577. * If \a note if 0, note-off is sent; note-on otherwise.
  578. */
  579. CARLA_EXPORT void carla_send_midi_note(unsigned int pluginId, uint8_t channel, uint8_t note, uint8_t velocity);
  580. #endif
  581. /*!
  582. * Tell a plugin to show its own custom UI.
  583. * \see PLUGIN_HAS_GUI
  584. */
  585. CARLA_EXPORT void carla_show_gui(unsigned int pluginId, bool yesNo);
  586. /*!
  587. * Get the current engine buffer size.
  588. */
  589. CARLA_EXPORT uint32_t carla_get_buffer_size();
  590. /*!
  591. * Get the current engine sample rate.
  592. */
  593. CARLA_EXPORT double carla_get_sample_rate();
  594. /*!
  595. * Get the last error.
  596. */
  597. CARLA_EXPORT const char* carla_get_last_error();
  598. /*!
  599. * Get the current engine OSC URL (TCP).
  600. */
  601. CARLA_EXPORT const char* carla_get_host_osc_url_tcp();
  602. /*!
  603. * Get the current engine OSC URL (UDP).
  604. */
  605. CARLA_EXPORT const char* carla_get_host_osc_url_udp();
  606. /*!
  607. * Send NSM announce message.
  608. */
  609. CARLA_EXPORT void carla_nsm_announce(const char* url, const char* appName, int pid);
  610. /*!
  611. * Ready for handling NSM messages.
  612. */
  613. CARLA_EXPORT void carla_nsm_ready();
  614. /*!
  615. * Reply to NSM open message.
  616. * \see CALLBACK_NSM_OPEN
  617. */
  618. CARLA_EXPORT void carla_nsm_reply_open();
  619. /*!
  620. * Reply to NSM save message.
  621. * \see CALLBACK_NSM_SAVE
  622. */
  623. CARLA_EXPORT void carla_nsm_reply_save();
  624. #ifdef BUILD_BRIDGE
  625. using CarlaBackend::CarlaEngine;
  626. CARLA_EXPORT CarlaEngine* carla_get_standalone_engine();
  627. #endif
  628. /**@}*/
  629. #endif // CARLA_HOST_HPP_INCLUDED