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.

532 lines
18KB

  1. /*
  2. * Carla Native Plugins
  3. * Copyright (C) 2012-2019 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. #include "CarlaNative.h"
  18. #include "CarlaMIDI.h"
  19. #include "CarlaUtils.hpp"
  20. #undef DESCFUNCS_WITHCV
  21. #undef DESCFUNCS_WITHOUTCV
  22. #define DESCFUNCS_WITHCV \
  23. nullptr, nullptr, nullptr, nullptr, nullptr, \
  24. nullptr, nullptr, nullptr, nullptr, nullptr, \
  25. nullptr, nullptr, nullptr, nullptr, nullptr, \
  26. nullptr, nullptr, nullptr, nullptr, nullptr, \
  27. nullptr, nullptr
  28. #define DESCFUNCS_WITHOUTCV \
  29. DESCFUNCS_WITHCV, 0, 0
  30. static const NativePluginDescriptor sNativePluginDescriptors[] = {
  31. // --------------------------------------------------------------------------------------------------------------------
  32. // Simple plugins
  33. {
  34. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  35. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  36. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  37. /* audioIns */ 1,
  38. /* audioOuts */ 1,
  39. /* midiIns */ 0,
  40. /* midiOuts */ 0,
  41. /* paramIns */ 1,
  42. /* paramOuts */ 0,
  43. /* name */ "Audio Gain (Mono)",
  44. /* label */ "audiogain",
  45. /* maker */ "falkTX",
  46. /* copyright */ "GNU GPL v2+",
  47. DESCFUNCS_WITHOUTCV
  48. },
  49. {
  50. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  51. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  52. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  53. /* audioIns */ 2,
  54. /* audioOuts */ 2,
  55. /* midiIns */ 0,
  56. /* midiOuts */ 0,
  57. /* paramIns */ 3,
  58. /* paramOuts */ 0,
  59. /* name */ "Audio Gain (Stereo)",
  60. /* label */ "audiogain_s",
  61. /* maker */ "falkTX",
  62. /* copyright */ "GNU GPL v2+",
  63. DESCFUNCS_WITHOUTCV
  64. },
  65. {
  66. /* category */ NATIVE_PLUGIN_CATEGORY_NONE,
  67. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  68. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  69. /* audioIns */ 1,
  70. /* audioOuts */ 1,
  71. /* midiIns */ 0,
  72. /* midiOuts */ 0,
  73. /* paramIns */ 0,
  74. /* paramOuts */ 0,
  75. /* name */ "Bypass",
  76. /* label */ "bypass",
  77. /* maker */ "falkTX",
  78. /* copyright */ "GNU GPL v2+",
  79. DESCFUNCS_WITHOUTCV
  80. },
  81. {
  82. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  83. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  84. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  85. /* audioIns */ 0,
  86. /* audioOuts */ 0,
  87. /* midiIns */ 0,
  88. /* midiOuts */ 0,
  89. /* paramIns */ 5-1,
  90. /* paramOuts */ 1,
  91. /* name */ "LFO",
  92. /* label */ "lfo",
  93. /* maker */ "falkTX",
  94. /* copyright */ "GNU GPL v2+",
  95. DESCFUNCS_WITHOUTCV
  96. },
  97. {
  98. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  99. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  100. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  101. /* audioIns */ 0,
  102. /* audioOuts */ 0,
  103. /* midiIns */ 1,
  104. /* midiOuts */ 1,
  105. /* paramIns */ 0,
  106. /* paramOuts */ 0,
  107. /* name */ "MIDI Channel Filter",
  108. /* label */ "midichanfilter",
  109. /* maker */ "falkTX",
  110. /* copyright */ "GNU GPL v2+",
  111. DESCFUNCS_WITHOUTCV
  112. },
  113. {
  114. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  115. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  116. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  117. /* audioIns */ 0,
  118. /* audioOuts */ 0,
  119. /* midiIns */ 1,
  120. /* midiOuts */ 2,
  121. /* paramIns */ 0,
  122. /* paramOuts */ 0,
  123. /* name */ "MIDI Channel A/B",
  124. /* label */ "midichanab",
  125. /* maker */ "Milk Brewster",
  126. /* copyright */ "GNU GPL v2+",
  127. DESCFUNCS_WITHOUTCV
  128. },
  129. {
  130. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  131. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  132. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  133. /* audioIns */ 0,
  134. /* audioOuts */ 0,
  135. /* midiIns */ 1,
  136. /* midiOuts */ 1,
  137. /* paramIns */ 0,
  138. /* paramOuts */ 0,
  139. /* name */ "MIDI Gain",
  140. /* label */ "midigain",
  141. /* maker */ "falkTX",
  142. /* copyright */ "GNU GPL v2+",
  143. DESCFUNCS_WITHOUTCV
  144. },
  145. {
  146. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  147. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  148. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  149. /* audioIns */ 0,
  150. /* audioOuts */ 0,
  151. /* midiIns */ MAX_MIDI_CHANNELS,
  152. /* midiOuts */ 1,
  153. /* paramIns */ 0,
  154. /* paramOuts */ 0,
  155. /* name */ "MIDI Join",
  156. /* label */ "midijoin",
  157. /* maker */ "falkTX",
  158. /* copyright */ "GNU GPL v2+",
  159. DESCFUNCS_WITHOUTCV
  160. },
  161. {
  162. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  163. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  164. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  165. /* audioIns */ 0,
  166. /* audioOuts */ 0,
  167. /* midiIns */ 1,
  168. /* midiOuts */ MAX_MIDI_CHANNELS,
  169. /* paramIns */ 0,
  170. /* paramOuts */ 0,
  171. /* name */ "MIDI Split",
  172. /* label */ "midisplit",
  173. /* maker */ "falkTX",
  174. /* copyright */ "GNU GPL v2+",
  175. DESCFUNCS_WITHOUTCV
  176. },
  177. {
  178. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  179. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  180. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  181. /* audioIns */ 0,
  182. /* audioOuts */ 0,
  183. /* midiIns */ 1,
  184. /* midiOuts */ 1,
  185. /* paramIns */ 0,
  186. /* paramOuts */ 0,
  187. /* name */ "MIDI Through",
  188. /* label */ "midithrough",
  189. /* maker */ "falkTX",
  190. /* copyright */ "GNU GPL v2+",
  191. DESCFUNCS_WITHOUTCV
  192. },
  193. {
  194. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  195. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  196. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  197. /* audioIns */ 0,
  198. /* audioOuts */ 0,
  199. /* midiIns */ 1,
  200. /* midiOuts */ 1,
  201. /* paramIns */ 2,
  202. /* paramOuts */ 0,
  203. /* name */ "MIDI Transpose",
  204. /* label */ "miditranspose",
  205. /* maker */ "falkTX",
  206. /* copyright */ "GNU GPL v2+",
  207. DESCFUNCS_WITHOUTCV
  208. },
  209. {
  210. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  211. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  212. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  213. /* audioIns */ 0,
  214. /* audioOuts */ 0,
  215. /* midiIns */ 1,
  216. /* midiOuts */ 1,
  217. /* paramIns */ 1,
  218. /* paramOuts */ 0,
  219. /* name */ "MIDI Channelize",
  220. /* label */ "midichannelize",
  221. /* maker */ "falkTX",
  222. /* copyright */ "GNU GPL v2+",
  223. DESCFUNCS_WITHOUTCV
  224. },
  225. // --------------------------------------------------------------------------------------------------------------------
  226. // Audio file
  227. {
  228. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  229. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  230. |NATIVE_PLUGIN_HAS_INLINE_DISPLAY
  231. |NATIVE_PLUGIN_HAS_UI
  232. |NATIVE_PLUGIN_NEEDS_UI_OPEN_SAVE
  233. |NATIVE_PLUGIN_USES_TIME),
  234. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  235. /* audioIns */ 0,
  236. /* audioOuts */ 2,
  237. /* midiIns */ 0,
  238. /* midiOuts */ 0,
  239. /* paramIns */ 1,
  240. /* paramOuts */ 0,
  241. /* name */ "Audio File",
  242. /* label */ "audiofile",
  243. /* maker */ "falkTX",
  244. /* copyright */ "GNU GPL v2+",
  245. DESCFUNCS_WITHOUTCV
  246. },
  247. // --------------------------------------------------------------------------------------------------------------------
  248. // MIDI file and sequencer
  249. {
  250. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  251. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  252. |NATIVE_PLUGIN_HAS_UI
  253. |NATIVE_PLUGIN_NEEDS_UI_OPEN_SAVE
  254. |NATIVE_PLUGIN_USES_STATE
  255. |NATIVE_PLUGIN_USES_TIME),
  256. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  257. /* audioIns */ 0,
  258. /* audioOuts */ 0,
  259. /* midiIns */ 0,
  260. /* midiOuts */ 1,
  261. /* paramIns */ 0,
  262. /* paramOuts */ 0,
  263. /* name */ "MIDI File",
  264. /* label */ "midifile",
  265. /* maker */ "falkTX",
  266. /* copyright */ "GNU GPL v2+",
  267. DESCFUNCS_WITHOUTCV
  268. },
  269. #ifdef HAVE_PYQT
  270. {
  271. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  272. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  273. |NATIVE_PLUGIN_HAS_UI
  274. |NATIVE_PLUGIN_USES_STATE
  275. |NATIVE_PLUGIN_USES_TIME),
  276. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  277. /* audioIns */ 0,
  278. /* audioOuts */ 0,
  279. /* midiIns */ 0,
  280. /* midiOuts */ 1,
  281. /* paramIns */ 4,
  282. /* paramOuts */ 0,
  283. /* name */ "MIDI Pattern",
  284. /* label */ "midipattern",
  285. /* maker */ "falkTX, tatch",
  286. /* copyright */ "GNU GPL v2+",
  287. DESCFUNCS_WITHOUTCV
  288. },
  289. #endif
  290. // --------------------------------------------------------------------------------------------------------------------
  291. // Carla
  292. #ifdef HAVE_PYQT
  293. {
  294. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  295. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  296. |NATIVE_PLUGIN_HAS_UI
  297. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  298. |NATIVE_PLUGIN_USES_STATE
  299. |NATIVE_PLUGIN_USES_TIME),
  300. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  301. /* audioIns */ 2,
  302. /* audioOuts */ 2,
  303. /* midiIns */ 1,
  304. /* midiOuts */ 1,
  305. /* paramIns */ 100,
  306. /* paramOuts */ 10,
  307. /* name */ "Carla-Rack",
  308. /* label */ "carlarack",
  309. /* maker */ "falkTX",
  310. /* copyright */ "GNU GPL v2+",
  311. DESCFUNCS_WITHOUTCV
  312. },
  313. {
  314. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  315. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  316. |NATIVE_PLUGIN_HAS_UI
  317. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  318. |NATIVE_PLUGIN_USES_STATE
  319. |NATIVE_PLUGIN_USES_TIME),
  320. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  321. /* audioIns */ 2,
  322. /* audioOuts */ 2,
  323. /* midiIns */ 1,
  324. /* midiOuts */ 0,
  325. /* paramIns */ 100,
  326. /* paramOuts */ 10,
  327. /* name */ "Carla-Rack (no midi out)",
  328. /* label */ "carlarack-nomidiout",
  329. /* maker */ "falkTX",
  330. /* copyright */ "GNU GPL v2+",
  331. DESCFUNCS_WITHOUTCV
  332. },
  333. {
  334. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  335. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  336. |NATIVE_PLUGIN_HAS_UI
  337. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  338. |NATIVE_PLUGIN_USES_STATE
  339. |NATIVE_PLUGIN_USES_TIME),
  340. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  341. /* audioIns */ 2,
  342. /* audioOuts */ 2,
  343. /* midiIns */ 1,
  344. /* midiOuts */ 1,
  345. /* paramIns */ 100,
  346. /* paramOuts */ 10,
  347. /* name */ "Carla-Patchbay",
  348. /* label */ "carlapatchbay",
  349. /* maker */ "falkTX",
  350. /* copyright */ "GNU GPL v2+",
  351. DESCFUNCS_WITHOUTCV
  352. },
  353. {
  354. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  355. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  356. |NATIVE_PLUGIN_HAS_UI
  357. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  358. |NATIVE_PLUGIN_USES_STATE
  359. |NATIVE_PLUGIN_USES_TIME),
  360. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  361. /* audioIns */ 3,
  362. /* audioOuts */ 2,
  363. /* midiIns */ 1,
  364. /* midiOuts */ 1,
  365. /* paramIns */ 100,
  366. /* paramOuts */ 10,
  367. /* name */ "Carla-Patchbay (sidechain)",
  368. /* label */ "carlapatchbay3s",
  369. /* maker */ "falkTX",
  370. /* copyright */ "GNU GPL v2+",
  371. DESCFUNCS_WITHOUTCV
  372. },
  373. {
  374. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  375. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  376. |NATIVE_PLUGIN_HAS_UI
  377. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  378. |NATIVE_PLUGIN_USES_STATE
  379. |NATIVE_PLUGIN_USES_TIME),
  380. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  381. /* audioIns */ 16,
  382. /* audioOuts */ 16,
  383. /* midiIns */ 1,
  384. /* midiOuts */ 1,
  385. /* paramIns */ 100,
  386. /* paramOuts */ 10,
  387. /* name */ "Carla-Patchbay (16chan)",
  388. /* label */ "carlapatchbay16",
  389. /* maker */ "falkTX",
  390. /* copyright */ "GNU GPL v2+",
  391. DESCFUNCS_WITHOUTCV
  392. },
  393. {
  394. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  395. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  396. |NATIVE_PLUGIN_HAS_UI
  397. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  398. |NATIVE_PLUGIN_USES_STATE
  399. |NATIVE_PLUGIN_USES_TIME),
  400. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  401. /* audioIns */ 32,
  402. /* audioOuts */ 32,
  403. /* midiIns */ 1,
  404. /* midiOuts */ 1,
  405. /* paramIns */ 100,
  406. /* paramOuts */ 10,
  407. /* name */ "Carla-Patchbay (32chan)",
  408. /* label */ "carlapatchbay32",
  409. /* maker */ "falkTX",
  410. /* copyright */ "GNU GPL v2+",
  411. DESCFUNCS_WITHOUTCV
  412. },
  413. {
  414. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  415. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  416. |NATIVE_PLUGIN_HAS_UI
  417. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  418. |NATIVE_PLUGIN_USES_STATE
  419. |NATIVE_PLUGIN_USES_TIME),
  420. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  421. /* audioIns */ 64,
  422. /* audioOuts */ 64,
  423. /* midiIns */ 1,
  424. /* midiOuts */ 1,
  425. /* paramIns */ 100,
  426. /* paramOuts */ 10,
  427. /* name */ "Carla-Patchbay (64chan)",
  428. /* label */ "carlapatchbay64",
  429. /* maker */ "falkTX",
  430. /* copyright */ "GNU GPL v2+",
  431. DESCFUNCS_WITHOUTCV
  432. },
  433. {
  434. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  435. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  436. |NATIVE_PLUGIN_HAS_UI
  437. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  438. |NATIVE_PLUGIN_USES_CONTROL_VOLTAGE
  439. |NATIVE_PLUGIN_USES_STATE
  440. |NATIVE_PLUGIN_USES_TIME),
  441. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  442. /* audioIns */ 2,
  443. /* audioOuts */ 2,
  444. /* midiIns */ 1,
  445. /* midiOuts */ 1,
  446. /* paramIns */ 100,
  447. /* paramOuts */ 10,
  448. /* name */ "Carla-Patchbay (CV)",
  449. /* label */ "carlapatchbaycv",
  450. /* maker */ "falkTX",
  451. /* copyright */ "GNU GPL v2+",
  452. DESCFUNCS_WITHCV,
  453. /* cvIns */ 5,
  454. /* cvOuts */ 5,
  455. },
  456. #endif
  457. // --------------------------------------------------------------------------------------------------------------------
  458. // External-UI plugins
  459. #ifdef HAVE_PYQT
  460. {
  461. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  462. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  463. |NATIVE_PLUGIN_HAS_INLINE_DISPLAY
  464. |NATIVE_PLUGIN_HAS_UI
  465. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  466. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  467. /* audioIns */ 2,
  468. /* audioOuts */ 0,
  469. /* midiIns */ 0,
  470. /* midiOuts */ 0,
  471. /* paramIns */ 2,
  472. /* paramOuts */ 2,
  473. /* name */ "Big Meter",
  474. /* label */ "bigmeter",
  475. /* maker */ "falkTX",
  476. /* copyright */ "GNU GPL v2+",
  477. DESCFUNCS_WITHOUTCV
  478. },
  479. {
  480. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  481. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  482. |NATIVE_PLUGIN_HAS_UI),
  483. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  484. /* audioIns */ 0,
  485. /* audioOuts */ 0,
  486. /* midiIns */ 0,
  487. /* midiOuts */ 0,
  488. /* paramIns */ 1,
  489. /* paramOuts */ 0,
  490. /* name */ "Notes",
  491. /* label */ "notes",
  492. /* maker */ "falkTX",
  493. /* copyright */ "GNU GPL v2+",
  494. DESCFUNCS_WITHOUTCV
  495. },
  496. #endif
  497. #ifdef HAVE_EXTERNAL_PLUGINS
  498. # define CARLA_EXTERNAL_PLUGINS_INCLUDED_DIRECTLY
  499. # include "external/_data.cpp"
  500. #endif
  501. };
  502. #undef DESCFUNCS_WITHCV
  503. #undef DESCFUNCS_WITHOUTCV
  504. // --------------------------------------------------------------------------------------------------------------------
  505. const NativePluginDescriptor* carla_get_native_plugins_data(uint32_t* count)
  506. {
  507. CARLA_SAFE_ASSERT_RETURN(count != nullptr, nullptr);
  508. *count = static_cast<uint32_t>(sizeof(sNativePluginDescriptors)/sizeof(NativePluginDescriptor));
  509. return sNativePluginDescriptors;
  510. }
  511. // --------------------------------------------------------------------------------------------------------------------