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