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.

534 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_REQUESTS_IDLE
  234. |NATIVE_PLUGIN_USES_TIME),
  235. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  236. /* audioIns */ 0,
  237. /* audioOuts */ 2,
  238. /* midiIns */ 0,
  239. /* midiOuts */ 0,
  240. /* paramIns */ 1,
  241. /* paramOuts */ 0,
  242. /* name */ "Audio File",
  243. /* label */ "audiofile",
  244. /* maker */ "falkTX",
  245. /* copyright */ "GNU GPL v2+",
  246. DESCFUNCS_WITHOUTCV
  247. },
  248. // --------------------------------------------------------------------------------------------------------------------
  249. // MIDI file and sequencer
  250. {
  251. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  252. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  253. |NATIVE_PLUGIN_HAS_UI
  254. |NATIVE_PLUGIN_NEEDS_UI_OPEN_SAVE
  255. |NATIVE_PLUGIN_REQUESTS_IDLE
  256. |NATIVE_PLUGIN_USES_STATE
  257. |NATIVE_PLUGIN_USES_TIME),
  258. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  259. /* audioIns */ 0,
  260. /* audioOuts */ 0,
  261. /* midiIns */ 0,
  262. /* midiOuts */ 1,
  263. /* paramIns */ 0,
  264. /* paramOuts */ 0,
  265. /* name */ "MIDI File",
  266. /* label */ "midifile",
  267. /* maker */ "falkTX",
  268. /* copyright */ "GNU GPL v2+",
  269. DESCFUNCS_WITHOUTCV
  270. },
  271. #ifdef HAVE_PYQT
  272. {
  273. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  274. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  275. |NATIVE_PLUGIN_HAS_UI
  276. |NATIVE_PLUGIN_USES_STATE
  277. |NATIVE_PLUGIN_USES_TIME),
  278. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  279. /* audioIns */ 0,
  280. /* audioOuts */ 0,
  281. /* midiIns */ 0,
  282. /* midiOuts */ 1,
  283. /* paramIns */ 4,
  284. /* paramOuts */ 0,
  285. /* name */ "MIDI Pattern",
  286. /* label */ "midipattern",
  287. /* maker */ "falkTX, tatch",
  288. /* copyright */ "GNU GPL v2+",
  289. DESCFUNCS_WITHOUTCV
  290. },
  291. #endif
  292. // --------------------------------------------------------------------------------------------------------------------
  293. // Carla
  294. #ifdef HAVE_PYQT
  295. {
  296. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  297. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  298. |NATIVE_PLUGIN_HAS_UI
  299. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  300. |NATIVE_PLUGIN_USES_STATE
  301. |NATIVE_PLUGIN_USES_TIME),
  302. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  303. /* audioIns */ 2,
  304. /* audioOuts */ 2,
  305. /* midiIns */ 1,
  306. /* midiOuts */ 1,
  307. /* paramIns */ 100,
  308. /* paramOuts */ 10,
  309. /* name */ "Carla-Rack",
  310. /* label */ "carlarack",
  311. /* maker */ "falkTX",
  312. /* copyright */ "GNU GPL v2+",
  313. DESCFUNCS_WITHOUTCV
  314. },
  315. {
  316. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  317. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  318. |NATIVE_PLUGIN_HAS_UI
  319. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  320. |NATIVE_PLUGIN_USES_STATE
  321. |NATIVE_PLUGIN_USES_TIME),
  322. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  323. /* audioIns */ 2,
  324. /* audioOuts */ 2,
  325. /* midiIns */ 1,
  326. /* midiOuts */ 0,
  327. /* paramIns */ 100,
  328. /* paramOuts */ 10,
  329. /* name */ "Carla-Rack (no midi out)",
  330. /* label */ "carlarack-nomidiout",
  331. /* maker */ "falkTX",
  332. /* copyright */ "GNU GPL v2+",
  333. DESCFUNCS_WITHOUTCV
  334. },
  335. {
  336. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  337. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  338. |NATIVE_PLUGIN_HAS_UI
  339. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  340. |NATIVE_PLUGIN_USES_STATE
  341. |NATIVE_PLUGIN_USES_TIME),
  342. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  343. /* audioIns */ 2,
  344. /* audioOuts */ 2,
  345. /* midiIns */ 1,
  346. /* midiOuts */ 1,
  347. /* paramIns */ 100,
  348. /* paramOuts */ 10,
  349. /* name */ "Carla-Patchbay",
  350. /* label */ "carlapatchbay",
  351. /* maker */ "falkTX",
  352. /* copyright */ "GNU GPL v2+",
  353. DESCFUNCS_WITHOUTCV
  354. },
  355. {
  356. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  357. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  358. |NATIVE_PLUGIN_HAS_UI
  359. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  360. |NATIVE_PLUGIN_USES_STATE
  361. |NATIVE_PLUGIN_USES_TIME),
  362. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  363. /* audioIns */ 3,
  364. /* audioOuts */ 2,
  365. /* midiIns */ 1,
  366. /* midiOuts */ 1,
  367. /* paramIns */ 100,
  368. /* paramOuts */ 10,
  369. /* name */ "Carla-Patchbay (sidechain)",
  370. /* label */ "carlapatchbay3s",
  371. /* maker */ "falkTX",
  372. /* copyright */ "GNU GPL v2+",
  373. DESCFUNCS_WITHOUTCV
  374. },
  375. {
  376. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  377. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  378. |NATIVE_PLUGIN_HAS_UI
  379. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  380. |NATIVE_PLUGIN_USES_STATE
  381. |NATIVE_PLUGIN_USES_TIME),
  382. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  383. /* audioIns */ 16,
  384. /* audioOuts */ 16,
  385. /* midiIns */ 1,
  386. /* midiOuts */ 1,
  387. /* paramIns */ 100,
  388. /* paramOuts */ 10,
  389. /* name */ "Carla-Patchbay (16chan)",
  390. /* label */ "carlapatchbay16",
  391. /* maker */ "falkTX",
  392. /* copyright */ "GNU GPL v2+",
  393. DESCFUNCS_WITHOUTCV
  394. },
  395. {
  396. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  397. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  398. |NATIVE_PLUGIN_HAS_UI
  399. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  400. |NATIVE_PLUGIN_USES_STATE
  401. |NATIVE_PLUGIN_USES_TIME),
  402. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  403. /* audioIns */ 32,
  404. /* audioOuts */ 32,
  405. /* midiIns */ 1,
  406. /* midiOuts */ 1,
  407. /* paramIns */ 100,
  408. /* paramOuts */ 10,
  409. /* name */ "Carla-Patchbay (32chan)",
  410. /* label */ "carlapatchbay32",
  411. /* maker */ "falkTX",
  412. /* copyright */ "GNU GPL v2+",
  413. DESCFUNCS_WITHOUTCV
  414. },
  415. {
  416. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  417. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  418. |NATIVE_PLUGIN_HAS_UI
  419. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  420. |NATIVE_PLUGIN_USES_STATE
  421. |NATIVE_PLUGIN_USES_TIME),
  422. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  423. /* audioIns */ 64,
  424. /* audioOuts */ 64,
  425. /* midiIns */ 1,
  426. /* midiOuts */ 1,
  427. /* paramIns */ 100,
  428. /* paramOuts */ 10,
  429. /* name */ "Carla-Patchbay (64chan)",
  430. /* label */ "carlapatchbay64",
  431. /* maker */ "falkTX",
  432. /* copyright */ "GNU GPL v2+",
  433. DESCFUNCS_WITHOUTCV
  434. },
  435. {
  436. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  437. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  438. |NATIVE_PLUGIN_HAS_UI
  439. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  440. |NATIVE_PLUGIN_USES_CONTROL_VOLTAGE
  441. |NATIVE_PLUGIN_USES_STATE
  442. |NATIVE_PLUGIN_USES_TIME),
  443. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  444. /* audioIns */ 2,
  445. /* audioOuts */ 2,
  446. /* midiIns */ 1,
  447. /* midiOuts */ 1,
  448. /* paramIns */ 100,
  449. /* paramOuts */ 10,
  450. /* name */ "Carla-Patchbay (CV)",
  451. /* label */ "carlapatchbaycv",
  452. /* maker */ "falkTX",
  453. /* copyright */ "GNU GPL v2+",
  454. DESCFUNCS_WITHCV,
  455. /* cvIns */ 5,
  456. /* cvOuts */ 5,
  457. },
  458. #endif
  459. // --------------------------------------------------------------------------------------------------------------------
  460. // External-UI plugins
  461. #ifdef HAVE_PYQT
  462. {
  463. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  464. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  465. |NATIVE_PLUGIN_HAS_INLINE_DISPLAY
  466. |NATIVE_PLUGIN_HAS_UI
  467. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  468. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  469. /* audioIns */ 2,
  470. /* audioOuts */ 0,
  471. /* midiIns */ 0,
  472. /* midiOuts */ 0,
  473. /* paramIns */ 2,
  474. /* paramOuts */ 2,
  475. /* name */ "Big Meter",
  476. /* label */ "bigmeter",
  477. /* maker */ "falkTX",
  478. /* copyright */ "GNU GPL v2+",
  479. DESCFUNCS_WITHOUTCV
  480. },
  481. {
  482. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  483. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  484. |NATIVE_PLUGIN_HAS_UI),
  485. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  486. /* audioIns */ 0,
  487. /* audioOuts */ 0,
  488. /* midiIns */ 0,
  489. /* midiOuts */ 0,
  490. /* paramIns */ 1,
  491. /* paramOuts */ 0,
  492. /* name */ "Notes",
  493. /* label */ "notes",
  494. /* maker */ "falkTX",
  495. /* copyright */ "GNU GPL v2+",
  496. DESCFUNCS_WITHOUTCV
  497. },
  498. #endif
  499. #ifdef HAVE_EXTERNAL_PLUGINS
  500. # define CARLA_EXTERNAL_PLUGINS_INCLUDED_DIRECTLY
  501. # include "external/_data.cpp"
  502. #endif
  503. };
  504. #undef DESCFUNCS_WITHCV
  505. #undef DESCFUNCS_WITHOUTCV
  506. // --------------------------------------------------------------------------------------------------------------------
  507. const NativePluginDescriptor* carla_get_native_plugins_data(uint32_t* count)
  508. {
  509. CARLA_SAFE_ASSERT_RETURN(count != nullptr, nullptr);
  510. *count = static_cast<uint32_t>(sizeof(sNativePluginDescriptors)/sizeof(NativePluginDescriptor));
  511. return sNativePluginDescriptors;
  512. }
  513. // --------------------------------------------------------------------------------------------------------------------