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.

713 lines
19KB

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