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.

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