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.

_data.cpp 29KB

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835
  1. /*
  2. * Carla Native Plugins
  3. * Copyright (C) 2012-2015 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. #ifdef CARLA_OS_WIN
  21. #define DISABLE_PLUGINS_FOR_WINDOWS_BUILD
  22. #endif
  23. #undef DESCFUNCS
  24. #define DESCFUNCS \
  25. nullptr, nullptr, nullptr, nullptr, nullptr, \
  26. nullptr, nullptr, nullptr, nullptr, nullptr, \
  27. nullptr, nullptr, nullptr, nullptr, nullptr, \
  28. nullptr, nullptr, nullptr, nullptr, nullptr, nullptr
  29. static const NativePluginDescriptor sNativePluginDescriptors[] = {
  30. // -----------------------------------------------------------------------
  31. // Simple plugins
  32. {
  33. /* category */ NATIVE_PLUGIN_CATEGORY_NONE,
  34. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  35. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  36. /* audioIns */ 1,
  37. /* audioOuts */ 1,
  38. /* midiIns */ 0,
  39. /* midiOuts */ 0,
  40. /* paramIns */ 0,
  41. /* paramOuts */ 0,
  42. /* name */ "Bypass",
  43. /* label */ "bypass",
  44. /* maker */ "falkTX",
  45. /* copyright */ "GNU GPL v2+",
  46. DESCFUNCS
  47. },
  48. {
  49. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  50. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  51. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  52. /* audioIns */ 0,
  53. /* audioOuts */ 0,
  54. /* midiIns */ 0,
  55. /* midiOuts */ 0,
  56. /* paramIns */ 5-1,
  57. /* paramOuts */ 1,
  58. /* name */ "LFO",
  59. /* label */ "lfo",
  60. /* maker */ "falkTX",
  61. /* copyright */ "GNU GPL v2+",
  62. DESCFUNCS
  63. },
  64. {
  65. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  66. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  67. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  68. /* audioIns */ 0,
  69. /* audioOuts */ 0,
  70. /* midiIns */ 1,
  71. /* midiOuts */ 1,
  72. /* paramIns */ 0,
  73. /* paramOuts */ 0,
  74. /* name */ "MIDI Channel Filter",
  75. /* label */ "midichanfilter",
  76. /* maker */ "falkTX",
  77. /* copyright */ "GNU GPL v2+",
  78. DESCFUNCS
  79. },
  80. {
  81. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  82. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  83. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  84. /* audioIns */ 0,
  85. /* audioOuts */ 0,
  86. /* midiIns */ 1,
  87. /* midiOuts */ 1,
  88. /* paramIns */ 0,
  89. /* paramOuts */ 0,
  90. /* name */ "MIDI Gain",
  91. /* label */ "midigain",
  92. /* maker */ "falkTX",
  93. /* copyright */ "GNU GPL v2+",
  94. DESCFUNCS
  95. },
  96. {
  97. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  98. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  99. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  100. /* audioIns */ 0,
  101. /* audioOuts */ 0,
  102. /* midiIns */ MAX_MIDI_CHANNELS,
  103. /* midiOuts */ 1,
  104. /* paramIns */ 0,
  105. /* paramOuts */ 0,
  106. /* name */ "MIDI Join",
  107. /* label */ "midijoin",
  108. /* maker */ "falkTX",
  109. /* copyright */ "GNU GPL v2+",
  110. DESCFUNCS
  111. },
  112. {
  113. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  114. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  115. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  116. /* audioIns */ 0,
  117. /* audioOuts */ 0,
  118. /* midiIns */ 1,
  119. /* midiOuts */ MAX_MIDI_CHANNELS,
  120. /* paramIns */ 0,
  121. /* paramOuts */ 0,
  122. /* name */ "MIDI Split",
  123. /* label */ "midisplit",
  124. /* maker */ "falkTX",
  125. /* copyright */ "GNU GPL v2+",
  126. DESCFUNCS
  127. },
  128. {
  129. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  130. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  131. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  132. /* audioIns */ 0,
  133. /* audioOuts */ 0,
  134. /* midiIns */ 1,
  135. /* midiOuts */ 1,
  136. /* paramIns */ 0,
  137. /* paramOuts */ 0,
  138. /* name */ "MIDI Through",
  139. /* label */ "midithrough",
  140. /* maker */ "falkTX",
  141. /* copyright */ "GNU GPL v2+",
  142. DESCFUNCS
  143. },
  144. {
  145. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  146. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  147. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  148. /* audioIns */ 0,
  149. /* audioOuts */ 0,
  150. /* midiIns */ 1,
  151. /* midiOuts */ 1,
  152. /* paramIns */ 1,
  153. /* paramOuts */ 0,
  154. /* name */ "MIDI Transpose",
  155. /* label */ "miditranspose",
  156. /* maker */ "falkTX",
  157. /* copyright */ "GNU GPL v2+",
  158. DESCFUNCS
  159. },
  160. // -----------------------------------------------------------------------
  161. // Audio file
  162. {
  163. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  164. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_HAS_UI
  165. |NATIVE_PLUGIN_NEEDS_UI_OPEN_SAVE),
  166. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  167. /* audioIns */ 0,
  168. /* audioOuts */ 2,
  169. /* midiIns */ 0,
  170. /* midiOuts */ 0,
  171. /* paramIns */ 1,
  172. /* paramOuts */ 0,
  173. /* name */ "Audio File",
  174. /* label */ "audiofile",
  175. /* maker */ "falkTX",
  176. /* copyright */ "GNU GPL v2+",
  177. DESCFUNCS
  178. },
  179. // -----------------------------------------------------------------------
  180. // MIDI file and sequencer
  181. {
  182. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  183. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  184. |NATIVE_PLUGIN_HAS_UI
  185. |NATIVE_PLUGIN_NEEDS_UI_OPEN_SAVE
  186. |NATIVE_PLUGIN_USES_STATE
  187. |NATIVE_PLUGIN_USES_TIME),
  188. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  189. /* audioIns */ 0,
  190. /* audioOuts */ 0,
  191. /* midiIns */ 0,
  192. /* midiOuts */ 1,
  193. /* paramIns */ 0,
  194. /* paramOuts */ 0,
  195. /* name */ "MIDI File",
  196. /* label */ "midifile",
  197. /* maker */ "falkTX",
  198. /* copyright */ "GNU GPL v2+",
  199. DESCFUNCS
  200. },
  201. #ifndef DISABLE_PLUGINS_FOR_WINDOWS_BUILD
  202. {
  203. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  204. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  205. |NATIVE_PLUGIN_HAS_UI
  206. |NATIVE_PLUGIN_USES_STATE
  207. |NATIVE_PLUGIN_USES_TIME),
  208. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  209. /* audioIns */ 0,
  210. /* audioOuts */ 0,
  211. /* midiIns */ 0,
  212. /* midiOuts */ 1,
  213. /* paramIns */ 4,
  214. /* paramOuts */ 0,
  215. /* name */ "MIDI Pattern",
  216. /* label */ "midipattern",
  217. /* maker */ "falkTX, tatch",
  218. /* copyright */ "GNU GPL v2+",
  219. DESCFUNCS
  220. },
  221. #endif
  222. // -----------------------------------------------------------------------
  223. // Carla
  224. #ifndef DISABLE_PLUGINS_FOR_WINDOWS_BUILD
  225. {
  226. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  227. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  228. |NATIVE_PLUGIN_HAS_UI
  229. //|NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS
  230. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  231. |NATIVE_PLUGIN_USES_STATE
  232. |NATIVE_PLUGIN_USES_TIME),
  233. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  234. /* audioIns */ 2,
  235. /* audioOuts */ 2,
  236. /* midiIns */ 1,
  237. /* midiOuts */ 1,
  238. /* paramIns */ 0,
  239. /* paramOuts */ 0,
  240. /* name */ "Carla-Rack",
  241. /* label */ "carlarack",
  242. /* maker */ "falkTX",
  243. /* copyright */ "GNU GPL v2+",
  244. DESCFUNCS
  245. },
  246. {
  247. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  248. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  249. |NATIVE_PLUGIN_HAS_UI
  250. //|NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS
  251. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  252. |NATIVE_PLUGIN_USES_STATE
  253. |NATIVE_PLUGIN_USES_TIME),
  254. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  255. /* audioIns */ 2,
  256. /* audioOuts */ 2,
  257. /* midiIns */ 1,
  258. /* midiOuts */ 1,
  259. /* paramIns */ 0,
  260. /* paramOuts */ 0,
  261. /* name */ "Carla-Patchbay",
  262. /* label */ "carlapatchbay",
  263. /* maker */ "falkTX",
  264. /* copyright */ "GNU GPL v2+",
  265. DESCFUNCS
  266. },
  267. {
  268. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  269. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  270. |NATIVE_PLUGIN_HAS_UI
  271. //|NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS
  272. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  273. |NATIVE_PLUGIN_USES_STATE
  274. |NATIVE_PLUGIN_USES_TIME),
  275. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  276. /* audioIns */ 3,
  277. /* audioOuts */ 2,
  278. /* midiIns */ 1,
  279. /* midiOuts */ 1,
  280. /* paramIns */ 0,
  281. /* paramOuts */ 0,
  282. /* name */ "Carla-Patchbay (sidechain)",
  283. /* label */ "carlapatchbay3s",
  284. /* maker */ "falkTX",
  285. /* copyright */ "GNU GPL v2+",
  286. DESCFUNCS
  287. },
  288. {
  289. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  290. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  291. |NATIVE_PLUGIN_HAS_UI
  292. //|NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS
  293. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  294. |NATIVE_PLUGIN_USES_STATE
  295. |NATIVE_PLUGIN_USES_TIME),
  296. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  297. /* audioIns */ 16,
  298. /* audioOuts */ 16,
  299. /* midiIns */ 1,
  300. /* midiOuts */ 1,
  301. /* paramIns */ 0,
  302. /* paramOuts */ 0,
  303. /* name */ "Carla-Patchbay (16chan)",
  304. /* label */ "carlapatchbay16",
  305. /* maker */ "falkTX",
  306. /* copyright */ "GNU GPL v2+",
  307. DESCFUNCS
  308. },
  309. {
  310. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  311. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  312. |NATIVE_PLUGIN_HAS_UI
  313. //|NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS
  314. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  315. |NATIVE_PLUGIN_USES_STATE
  316. |NATIVE_PLUGIN_USES_TIME),
  317. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  318. /* audioIns */ 32,
  319. /* audioOuts */ 32,
  320. /* midiIns */ 1,
  321. /* midiOuts */ 1,
  322. /* paramIns */ 0,
  323. /* paramOuts */ 0,
  324. /* name */ "Carla-Patchbay (32chan)",
  325. /* label */ "carlapatchbay32",
  326. /* maker */ "falkTX",
  327. /* copyright */ "GNU GPL v2+",
  328. DESCFUNCS
  329. },
  330. #endif
  331. // -----------------------------------------------------------------------
  332. // DISTRHO Plugins
  333. {
  334. /* category */ NATIVE_PLUGIN_CATEGORY_EQ,
  335. #ifdef HAVE_DGL
  336. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  337. |NATIVE_PLUGIN_HAS_UI
  338. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  339. |NATIVE_PLUGIN_USES_PARENT_ID),
  340. #else
  341. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE),
  342. #endif
  343. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  344. /* audioIns */ 2,
  345. /* audioOuts */ 2,
  346. /* midiIns */ 0,
  347. /* midiOuts */ 0,
  348. /* paramIns */ 6,
  349. /* paramOuts */ 0,
  350. /* name */ "3 Band EQ",
  351. /* label */ "3bandeq",
  352. /* maker */ "falkTX, Michael Gruhn",
  353. /* copyright */ "LGPL",
  354. DESCFUNCS
  355. },
  356. {
  357. /* category */ NATIVE_PLUGIN_CATEGORY_EQ,
  358. #ifdef HAVE_DGL
  359. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  360. |NATIVE_PLUGIN_HAS_UI
  361. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  362. |NATIVE_PLUGIN_USES_PARENT_ID),
  363. #else
  364. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE),
  365. #endif
  366. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  367. /* audioIns */ 2,
  368. /* audioOuts */ 6,
  369. /* midiIns */ 0,
  370. /* midiOuts */ 0,
  371. /* paramIns */ 6,
  372. /* paramOuts */ 0,
  373. /* name */ "3 Band Splitter",
  374. /* label */ "3bandsplitter",
  375. /* maker */ "falkTX, Michael Gruhn",
  376. /* copyright */ "LGPL",
  377. DESCFUNCS
  378. },
  379. {
  380. /* category */ NATIVE_PLUGIN_CATEGORY_SYNTH,
  381. #ifdef HAVE_DGL
  382. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  383. |NATIVE_PLUGIN_IS_SYNTH
  384. |NATIVE_PLUGIN_HAS_UI
  385. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  386. |NATIVE_PLUGIN_USES_PARENT_ID),
  387. #else
  388. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  389. |NATIVE_PLUGIN_IS_SYNTH),
  390. #endif
  391. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  392. /* audioIns */ 0,
  393. /* audioOuts */ 1,
  394. /* midiIns */ 1,
  395. /* midiOuts */ 0,
  396. /* paramIns */ 1,
  397. /* paramOuts */ 0,
  398. /* name */ "Kars",
  399. /* label */ "kars",
  400. /* maker */ "falkTX, Chris Cannam",
  401. /* copyright */ "ISC",
  402. DESCFUNCS
  403. },
  404. {
  405. /* category */ NATIVE_PLUGIN_CATEGORY_SYNTH,
  406. #ifdef HAVE_DGL
  407. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  408. |NATIVE_PLUGIN_IS_SYNTH
  409. |NATIVE_PLUGIN_HAS_UI
  410. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  411. |NATIVE_PLUGIN_USES_PARENT_ID),
  412. #else
  413. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  414. |NATIVE_PLUGIN_IS_SYNTH),
  415. #endif
  416. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_CONTROL_CHANGES
  417. |NATIVE_PLUGIN_SUPPORTS_ALL_SOUND_OFF),
  418. /* audioIns */ 0,
  419. /* audioOuts */ 1,
  420. /* midiIns */ 1,
  421. /* midiOuts */ 0,
  422. /* paramIns */ 8,
  423. /* paramOuts */ 0,
  424. /* name */ "Nekobi",
  425. /* label */ "nekobi",
  426. /* maker */ "falkTX, Sean Bolton and others",
  427. /* copyright */ "GPL v2+",
  428. DESCFUNCS
  429. },
  430. {
  431. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  432. #ifdef HAVE_DGL
  433. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  434. |NATIVE_PLUGIN_HAS_UI
  435. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  436. |NATIVE_PLUGIN_USES_PARENT_ID),
  437. #else
  438. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE),
  439. #endif
  440. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  441. /* audioIns */ 2,
  442. /* audioOuts */ 2,
  443. /* midiIns */ 0,
  444. /* midiOuts */ 0,
  445. /* paramIns */ 2,
  446. /* paramOuts */ 0,
  447. /* name */ "Ping Pong Pan",
  448. /* label */ "pingpongpan",
  449. /* maker */ "falkTX, Michael Gruhn",
  450. /* copyright */ "LGPL",
  451. DESCFUNCS
  452. },
  453. #ifdef HAVE_DGL
  454. #ifdef HAVE_PROJECTM
  455. {
  456. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  457. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  458. |NATIVE_PLUGIN_HAS_UI
  459. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  460. |NATIVE_PLUGIN_USES_PARENT_ID),
  461. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  462. /* audioIns */ 1,
  463. /* audioOuts */ 1,
  464. /* midiIns */ 0,
  465. /* midiOuts */ 0,
  466. /* paramIns */ 0,
  467. /* paramOuts */ 0,
  468. /* name */ "ProM",
  469. /* label */ "prom",
  470. /* maker */ "falkTX",
  471. /* copyright */ "LGPL",
  472. DESCFUNCS
  473. },
  474. #endif // HAVE_PROJECTM
  475. #endif // HAVE_DGL
  476. // -----------------------------------------------------------------------
  477. // DISTRHO plugins (Juice)
  478. {
  479. /* category */ NATIVE_PLUGIN_CATEGORY_DYNAMICS,
  480. #ifdef HAVE_DGL
  481. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  482. |NATIVE_PLUGIN_HAS_UI
  483. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  484. |NATIVE_PLUGIN_USES_PARENT_ID
  485. |NATIVE_PLUGIN_USES_TIME),
  486. #else
  487. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  488. |NATIVE_PLUGIN_USES_TIME),
  489. #endif
  490. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  491. /* audioIns */ 2,
  492. /* audioOuts */ 2,
  493. /* midiIns */ 0,
  494. /* midiOuts */ 0,
  495. /* paramIns */ 6,
  496. /* paramOuts */ 0,
  497. /* name */ "WobbleJuice",
  498. /* label */ "wobblejuice",
  499. /* maker */ "Andre Sklenar",
  500. /* copyright */ "GPL v2+",
  501. DESCFUNCS
  502. },
  503. {
  504. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  505. #ifdef HAVE_DGL
  506. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  507. |NATIVE_PLUGIN_HAS_UI
  508. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  509. |NATIVE_PLUGIN_USES_PARENT_ID
  510. |NATIVE_PLUGIN_USES_TIME),
  511. #else
  512. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  513. |NATIVE_PLUGIN_USES_TIME),
  514. #endif
  515. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  516. /* audioIns */ 8,
  517. /* audioOuts */ 2,
  518. /* midiIns */ 0,
  519. /* midiOuts */ 0,
  520. /* paramIns */ 13,
  521. /* paramOuts */ 4,
  522. /* name */ "VectorJuice",
  523. /* label */ "vectorjuice",
  524. /* maker */ "Andre Sklenar",
  525. /* copyright */ "GPL v2+",
  526. DESCFUNCS
  527. },
  528. // -----------------------------------------------------------------------
  529. // External-UI plugins
  530. #ifndef DISABLE_PLUGINS_FOR_WINDOWS_BUILD
  531. {
  532. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  533. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  534. |NATIVE_PLUGIN_HAS_UI
  535. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  536. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  537. /* audioIns */ 2,
  538. /* audioOuts */ 0,
  539. /* midiIns */ 0,
  540. /* midiOuts */ 0,
  541. /* paramIns */ 2,
  542. /* paramOuts */ 2,
  543. /* name */ "Big Meter",
  544. /* label */ "bigmeter",
  545. /* maker */ "falkTX",
  546. /* copyright */ "GNU GPL v2+",
  547. DESCFUNCS
  548. },
  549. {
  550. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  551. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  552. |NATIVE_PLUGIN_HAS_UI),
  553. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  554. /* audioIns */ 0,
  555. /* audioOuts */ 0,
  556. /* midiIns */ 0,
  557. /* midiOuts */ 0,
  558. /* paramIns */ 1,
  559. /* paramOuts */ 0,
  560. /* name */ "Notes",
  561. /* label */ "notes",
  562. /* maker */ "falkTX",
  563. /* copyright */ "GNU GPL v2+",
  564. DESCFUNCS
  565. },
  566. #endif
  567. // -----------------------------------------------------------------------
  568. // ZynAddSubFX
  569. #ifdef HAVE_ZYN_DEPS
  570. {
  571. /* category */ NATIVE_PLUGIN_CATEGORY_MODULATOR,
  572. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  573. |NATIVE_PLUGIN_USES_PANNING
  574. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  575. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  576. /* audioIns */ 2,
  577. /* audioOuts */ 2,
  578. /* midiIns */ 0,
  579. /* midiOuts */ 0,
  580. /* paramIns */ 11-2,
  581. /* paramOuts */ 0,
  582. /* name */ "ZynAlienWah",
  583. /* label */ "zynalienwah",
  584. /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
  585. /* copyright */ "GNU GPL v2+",
  586. DESCFUNCS
  587. },
  588. {
  589. /* category */ NATIVE_PLUGIN_CATEGORY_MODULATOR,
  590. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  591. |NATIVE_PLUGIN_USES_PANNING
  592. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  593. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  594. /* audioIns */ 2,
  595. /* audioOuts */ 2,
  596. /* midiIns */ 0,
  597. /* midiOuts */ 0,
  598. /* paramIns */ 12-2,
  599. /* paramOuts */ 0,
  600. /* name */ "ZynChorus",
  601. /* label */ "zynchorus",
  602. /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
  603. /* copyright */ "GNU GPL v2+",
  604. DESCFUNCS
  605. },
  606. {
  607. /* category */ NATIVE_PLUGIN_CATEGORY_MODULATOR,
  608. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_USES_PANNING
  609. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  610. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  611. /* audioIns */ 2,
  612. /* audioOuts */ 2,
  613. /* midiIns */ 0,
  614. /* midiOuts */ 0,
  615. /* paramIns */ 11-2,
  616. /* paramOuts */ 0,
  617. /* name */ "ZynDistortion",
  618. /* label */ "zyndistortion",
  619. /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
  620. /* copyright */ "GNU GPL v2+",
  621. DESCFUNCS
  622. },
  623. {
  624. /* category */ NATIVE_PLUGIN_CATEGORY_FILTER,
  625. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_USES_PANNING
  626. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  627. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  628. /* audioIns */ 2,
  629. /* audioOuts */ 2,
  630. /* midiIns */ 0,
  631. /* midiOuts */ 0,
  632. /* paramIns */ 10-2,
  633. /* paramOuts */ 0,
  634. /* name */ "ZynDynamicFilter",
  635. /* label */ "zyndynamicfilter",
  636. /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
  637. /* copyright */ "GNU GPL v2+",
  638. DESCFUNCS
  639. },
  640. {
  641. /* category */ NATIVE_PLUGIN_CATEGORY_DELAY,
  642. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  643. |NATIVE_PLUGIN_USES_PANNING
  644. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  645. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  646. /* audioIns */ 2,
  647. /* audioOuts */ 2,
  648. /* midiIns */ 0,
  649. /* midiOuts */ 0,
  650. /* paramIns */ 7-2,
  651. /* paramOuts */ 0,
  652. /* name */ "ZynEcho",
  653. /* label */ "zynecho",
  654. /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
  655. /* copyright */ "GNU GPL v2+",
  656. DESCFUNCS
  657. },
  658. {
  659. /* category */ NATIVE_PLUGIN_CATEGORY_MODULATOR,
  660. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_USES_PANNING
  661. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  662. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  663. /* audioIns */ 2,
  664. /* audioOuts */ 2,
  665. /* midiIns */ 0,
  666. /* midiOuts */ 0,
  667. /* paramIns */ 15-2,
  668. /* paramOuts */ 0,
  669. /* name */ "ZynPhaser",
  670. /* label */ "zynphaser",
  671. /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
  672. /* copyright */ "GNU GPL v2+",
  673. DESCFUNCS
  674. },
  675. {
  676. /* category */ NATIVE_PLUGIN_CATEGORY_DELAY,
  677. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_USES_PANNING
  678. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  679. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  680. /* audioIns */ 2,
  681. /* audioOuts */ 2,
  682. /* midiIns */ 0,
  683. /* midiOuts */ 0,
  684. /* paramIns */ 13-2,
  685. /* paramOuts */ 0,
  686. /* name */ "ZynReverb",
  687. /* label */ "zynreverb",
  688. /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
  689. /* copyright */ "GNU GPL v2+",
  690. DESCFUNCS
  691. },
  692. # ifndef DISABLE_PLUGINS_FOR_WINDOWS_BUILD
  693. {
  694. /* category */ NATIVE_PLUGIN_CATEGORY_SYNTH,
  695. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  696. # ifdef HAVE_ZYN_UI_DEPS
  697. |NATIVE_PLUGIN_HAS_UI
  698. # endif
  699. |NATIVE_PLUGIN_USES_MULTI_PROGS
  700. |NATIVE_PLUGIN_USES_STATE),
  701. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_CONTROL_CHANGES
  702. |NATIVE_PLUGIN_SUPPORTS_NOTE_AFTERTOUCH
  703. |NATIVE_PLUGIN_SUPPORTS_PITCHBEND
  704. |NATIVE_PLUGIN_SUPPORTS_ALL_SOUND_OFF),
  705. /* audioIns */ 0,
  706. /* audioOuts */ 2,
  707. /* midiIns */ 1,
  708. /* midiOuts */ 0,
  709. /* paramIns */ 6,
  710. /* paramOuts */ 0,
  711. /* name */ "ZynAddSubFX",
  712. /* label */ "zynaddsubfx",
  713. /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
  714. /* copyright */ "GNU GPL v2+",
  715. DESCFUNCS
  716. },
  717. # endif // ! DISABLE_PLUGINS_FOR_WINDOWS_BUILD
  718. #endif // HAVE_ZYN_DEPS
  719. // -----------------------------------------------------------------------
  720. // Experimental plugins
  721. #ifdef HAVE_EXPERIMENTAL_PLUGINS
  722. {
  723. /* category */ NATIVE_PLUGIN_CATEGORY_MODULATOR,
  724. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  725. |NATIVE_PLUGIN_HAS_UI
  726. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS
  727. |NATIVE_PLUGIN_USES_STATE),
  728. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  729. /* audioIns */ 1,
  730. /* audioOuts */ 1,
  731. /* midiIns */ 1,
  732. /* midiOuts */ 0,
  733. /* paramIns */ 6,
  734. /* paramOuts */ 0,
  735. /* name */ "AT1",
  736. /* label */ "at1",
  737. /* maker */ "falkTX, Fons Adriaensen",
  738. /* copyright */ "GPL v2+",
  739. DESCFUNCS
  740. },
  741. {
  742. /* category */ NATIVE_PLUGIN_CATEGORY_FILTER,
  743. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  744. |NATIVE_PLUGIN_HAS_UI
  745. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  746. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  747. /* audioIns */ 2,
  748. /* audioOuts */ 2,
  749. /* midiIns */ 0,
  750. /* midiOuts */ 0,
  751. /* paramIns */ 6,
  752. /* paramOuts */ 0,
  753. /* name */ "BLS1",
  754. /* label */ "bls1",
  755. /* maker */ "falkTX, Fons Adriaensen",
  756. /* copyright */ "GPL v2+",
  757. DESCFUNCS
  758. },
  759. {
  760. /* category */ NATIVE_PLUGIN_CATEGORY_DELAY,
  761. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  762. |NATIVE_PLUGIN_HAS_UI
  763. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  764. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  765. /* audioIns */ 2,
  766. /* audioOuts */ 4,
  767. /* midiIns */ 0,
  768. /* midiOuts */ 0,
  769. /* paramIns */ 10,
  770. /* paramOuts */ 0,
  771. /* name */ "REV1 (Ambisonic)",
  772. /* label */ "rev1-ambisonic",
  773. /* maker */ "falkTX, Fons Adriaensen",
  774. /* copyright */ "GPL v2+",
  775. DESCFUNCS
  776. },
  777. {
  778. /* category */ NATIVE_PLUGIN_CATEGORY_DELAY,
  779. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  780. |NATIVE_PLUGIN_HAS_UI
  781. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  782. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  783. /* audioIns */ 2,
  784. /* audioOuts */ 2,
  785. /* midiIns */ 0,
  786. /* midiOuts */ 0,
  787. /* paramIns */ 10,
  788. /* paramOuts */ 0,
  789. /* name */ "REV1 (Stereo)",
  790. /* label */ "rev1-stereo",
  791. /* maker */ "falkTX, Fons Adriaensen",
  792. /* copyright */ "GPL v2+",
  793. DESCFUNCS
  794. },
  795. #endif // HAVE_EXPERIMENTAL_PLUGINS
  796. };
  797. #undef DESCFUNCS
  798. // -----------------------------------------------------------------------
  799. const NativePluginDescriptor* carla_get_native_plugins_data(uint32_t* count)
  800. {
  801. CARLA_SAFE_ASSERT_RETURN(count != nullptr, nullptr);
  802. *count = static_cast<uint32_t>(sizeof(sNativePluginDescriptors)/sizeof(NativePluginDescriptor));
  803. return sNativePluginDescriptors;
  804. }
  805. // -----------------------------------------------------------------------