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.

RDF.cpp 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. /*
  2. * Carla LADSPA/LV2_RDF Tests
  3. * Copyright (C) 2014 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 "ladspa_rdf.hpp"
  18. #include "lv2_rdf.hpp"
  19. #include "CarlaUtils.hpp"
  20. // -----------------------------------------------------------------------
  21. // main
  22. int main()
  23. {
  24. // ladspa
  25. {
  26. LADSPA_RDF_ScalePoint scalePoint1, scalePoint2;
  27. scalePoint2.Label = carla_strdup("");
  28. LADSPA_RDF_Port port1, port2, port3;
  29. port2.Label = carla_strdup("");
  30. port3.Label = carla_strdup("");
  31. port3.ScalePoints = new LADSPA_RDF_ScalePoint[2];
  32. port3.ScalePoints[0].Label = carla_strdup("");
  33. port3.ScalePoints[1].Label = carla_strdup("");
  34. LADSPA_RDF_Descriptor desc1, desc2, desc3;
  35. desc2.Title = carla_strdup("");
  36. desc3.Title = carla_strdup("");
  37. desc2.Creator = carla_strdup("");
  38. desc3.Creator = carla_strdup("");
  39. desc3.Ports = new LADSPA_RDF_Port[1];
  40. desc3.Ports[0].Label = carla_strdup("");
  41. desc3.Ports[0].ScalePoints = new LADSPA_RDF_ScalePoint[1];
  42. desc3.Ports[0].ScalePoints[0].Label = carla_strdup("");
  43. }
  44. // lv2
  45. {
  46. LV2_RDF_PortMidiMap portMidiMap;
  47. LV2_RDF_PortPoints portPoints;
  48. LV2_RDF_PortUnit portUnit1, portUnit2;
  49. portUnit2.Name = carla_strdup("");
  50. portUnit2.Render = carla_strdup("");
  51. portUnit2.Symbol = carla_strdup("");
  52. LV2_RDF_PortScalePoint portScalePoint1, portScalePoint2;
  53. portScalePoint2.Label = carla_strdup("");
  54. LV2_RDF_Port port1, port2, port3;
  55. port2.Name = carla_strdup("");
  56. port3.Name = carla_strdup("");
  57. port2.Symbol = carla_strdup("");
  58. port3.Symbol = carla_strdup("");
  59. port3.Unit.Name = carla_strdup("");
  60. port3.Unit.Render = carla_strdup("");
  61. port3.Unit.Symbol = carla_strdup("");
  62. port3.ScalePoints = new LV2_RDF_PortScalePoint[2];
  63. port3.ScalePoints[0].Label = carla_strdup("");
  64. port3.ScalePoints[1].Label = carla_strdup("");
  65. LV2_RDF_Preset preset1, preset2;
  66. preset2.URI = carla_strdup("");
  67. preset2.Label = carla_strdup("");
  68. LV2_RDF_Feature feat1, feat2;
  69. feat2.URI = carla_strdup("");
  70. LV2_RDF_UI ui1, ui2, ui3;
  71. ui2.URI = carla_strdup("");
  72. ui3.URI = carla_strdup("");
  73. ui2.Binary = carla_strdup("");
  74. ui3.Binary = carla_strdup("");
  75. ui2.Bundle = carla_strdup("");
  76. ui3.Bundle = carla_strdup("");
  77. ui3.Features = new LV2_RDF_Feature[1];
  78. ui3.Features[0].URI = carla_strdup("");
  79. ui3.Extensions = new LV2_URI[3];
  80. ui3.Extensions[0] = carla_strdup("");
  81. ui3.Extensions[1] = nullptr;
  82. ui3.Extensions[2] = carla_strdup("");
  83. ui3.ExtensionCount = 3;
  84. LV2_RDF_Descriptor desc1, desc2, desc3;
  85. desc2.URI = carla_strdup("");
  86. desc3.URI = carla_strdup("");
  87. desc2.Name = carla_strdup("");
  88. desc3.Name = carla_strdup("");
  89. desc2.Author = carla_strdup("");
  90. desc3.Author = carla_strdup("");
  91. desc2.License = carla_strdup("");
  92. desc3.License = carla_strdup("");
  93. desc2.Binary = carla_strdup("");
  94. desc3.Binary = carla_strdup("");
  95. desc2.Bundle = carla_strdup("");
  96. desc3.Bundle = carla_strdup("");
  97. desc3.Ports = new LV2_RDF_Port[1];
  98. desc3.Ports[0].Name = carla_strdup("");
  99. desc3.Ports[0].Symbol = carla_strdup("");
  100. desc3.Ports[0].Unit.Name = carla_strdup("");
  101. desc3.Ports[0].Unit.Render = carla_strdup("");
  102. desc3.Ports[0].Unit.Symbol = carla_strdup("");
  103. desc3.Ports[0].ScalePoints = new LV2_RDF_PortScalePoint[1];
  104. desc3.Ports[0].ScalePoints[0].Label = carla_strdup("");
  105. desc3.Presets = new LV2_RDF_Preset[1];
  106. desc3.Presets[0].URI = carla_strdup("");
  107. desc3.Presets[0].Label = carla_strdup("");
  108. desc3.Features = new LV2_RDF_Feature[1];
  109. desc3.Features[0].URI = carla_strdup("");
  110. desc3.Extensions = new LV2_URI[3];
  111. desc3.Extensions[0] = carla_strdup("");
  112. desc3.Extensions[1] = nullptr;
  113. desc3.Extensions[2] = carla_strdup("");
  114. desc3.ExtensionCount = 3;
  115. desc3.UIs = new LV2_RDF_UI[1];
  116. desc3.UIs[0].URI = carla_strdup("");
  117. desc3.UIs[0].Binary = carla_strdup("");
  118. desc3.UIs[0].Bundle = carla_strdup("");
  119. desc3.UIs[0].Features = new LV2_RDF_Feature[1];
  120. desc3.UIs[0].Features[0].URI = carla_strdup("");
  121. desc3.UIs[0].Extensions = new LV2_URI[3];
  122. desc3.UIs[0].Extensions[0] = carla_strdup("");
  123. desc3.UIs[0].Extensions[1] = nullptr;
  124. desc3.UIs[0].Extensions[2] = carla_strdup("");
  125. desc3.UIs[0].ExtensionCount = 3;
  126. }
  127. return 0;
  128. }
  129. // -----------------------------------------------------------------------