| 1 | /* Copyright 2013 Kjetil S. Matheussen |
| 2 | |
| 3 | This program is free software; you can redistribute it and/or |
| 4 | modify it under the terms of the GNU General Public License |
| 5 | as published by the Free Software Foundation; either version 2 |
| 6 | of the License, or (at your option) any later version. |
| 7 | |
| 8 | This program is distributed in the hope that it will be useful, |
| 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | GNU General Public License for more details. |
| 12 | |
| 13 | You should have received a copy of the GNU General Public License |
| 14 | along with this program; if not, write to the Free Software |
| 15 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
| 16 | |
| 17 | |
| 18 | #include <math.h> |
| 19 | #include <string> |
| 20 | |
| 21 | #include <QSharedMemory> |
| 22 | #include <QDateTime> |
| 23 | |
| 24 | #include "faudiostream/architecture/faust/gui/UI.h"cxx . . $ `<file>/audio/faudiostream/architecture/faust/gui/UI.h`/ |
| 25 | #include "faudiostream/architecture/faust/audio/dsp.h"cxx . . $ `<file>/audio/faudiostream/architecture/faust/audio/dsp.h`/ |
| 26 | #ifdef COMPILING_STANDALONEcxx . . $ `<built-in>:485:9`! |
| 27 | #include "myjack-dsp.h"cxx . . $ `<file>/myjack-dsp.h`/ |
| 28 | #endif |
| 29 | |
| 30 | #include "../common/nsmtracker.h"cxx . . $ `<file>/common/nsmtracker.h`/ |
| 31 | |
| 32 | #include "system_compressor_wrapper_proc.h"cxx . . $ `<file>/audio/system_compressor_wrapper_proc.h`/ |
| 33 | |
| 34 | |
| 35 | |
| 36 | #include <vector> |
| 37 | |
| 38 | inline int maxcxx . . $ max(21cb2064190e2a90). (unsigned int a, unsigned int b) { return (a>b) ? a : b; } |
| 39 | inline int maxcxx . . $ max(9b79fb6aee4c0440). (int a, int b) { return (a>b) ? a : b; } |
| 40 | |
| 41 | inline long maxcxx . . $ max(d0a0e4c270da0eca). (long a, long b) { return (a>b) ? a : b; } |
| 42 | inline long maxcxx . . $ max(2e42635fa302fb78). (int a, long b) { return (a>b) ? a : b; } |
| 43 | inline long maxcxx . . $ max(3ade568055e44ad6). (long a, int b) { return (a>b) ? a : b; } |
| 44 | |
| 45 | inline float maxcxx . . $ max(d59a45cd3bfd2eda). (float a, float b) { return (a>b) ? a : b; } |
| 46 | inline float maxcxx . . $ max(d7799857c894622e). (int a, float b) { return (a>b) ? a : b; } |
| 47 | inline float maxcxx . . $ max(527397cc224223e). (float a, int b) { return (a>b) ? a : b; } |
| 48 | inline float maxcxx . . $ max(4ff3e6058bf4cf0). (long a, float b) { return (a>b) ? a : b; } |
| 49 | inline float maxcxx . . $ max(3288688568a3bc8a). (float a, long b) { return (a>b) ? a : b; } |
| 50 | |
| 51 | inline double maxcxx . . $ max(d8e7e0733fa41c87). (double a, double b) { return (a>b) ? a : b; } |
| 52 | inline double maxcxx . . $ max(538a8530131fd110). (int a, double b) { return (a>b) ? a : b; } |
| 53 | inline double maxcxx . . $ max(f7856f627868a823). (double a, int b) { return (a>b) ? a : b; } |
| 54 | inline double maxcxx . . $ max(9976ed6c9a6c4849). (long a, double b) { return (a>b) ? a : b; } |
| 55 | inline double maxcxx . . $ max(3b6c2eefe8d0b5cf). (double a, long b) { return (a>b) ? a : b; } |
| 56 | inline double maxcxx . . $ max(56fbb6e691990aa9). (float a, double b) { return (a>b) ? a : b; } |
| 57 | inline double maxcxx . . $ max(9b6e50055d59cc37). (double a, float b) { return (a>b) ? a : b; } |
| 58 | |
| 59 | |
| 60 | inline int mincxx . . $ min(9b79fb6aee4c0440). (int a, int b) { return (a<b) ? a : b; } |
| 61 | |
| 62 | inline long mincxx . . $ min(d0a0e4c270da0eca). (long a, long b) { return (a<b) ? a : b; } |
| 63 | inline long mincxx . . $ min(2e42635fa302fb78). (int a, long b) { return (a<b) ? a : b; } |
| 64 | inline long mincxx . . $ min(3ade568055e44ad6). (long a, int b) { return (a<b) ? a : b; } |
| 65 | |
| 66 | inline float mincxx . . $ min(d59a45cd3bfd2eda). (float a, float b) { return (a<b) ? a : b; } |
| 67 | inline float mincxx . . $ min(d7799857c894622e). (int a, float b) { return (a<b) ? a : b; } |
| 68 | inline float mincxx . . $ min(527397cc224223e). (float a, int b) { return (a<b) ? a : b; } |
| 69 | inline float mincxx . . $ min(4ff3e6058bf4cf0). (long a, float b) { return (a<b) ? a : b; } |
| 70 | inline float mincxx . . $ min(3288688568a3bc8a). (float a, long b) { return (a<b) ? a : b; } |
| 71 | |
| 72 | inline double mincxx . . $ min(d8e7e0733fa41c87). (double a, double b) { return (a<b) ? a : b; } |
| 73 | inline double mincxx . . $ min(538a8530131fd110). (int a, double b) { return (a<b) ? a : b; } |
| 74 | inline double mincxx . . $ min(f7856f627868a823). (double a, int b) { return (a<b) ? a : b; } |
| 75 | inline double mincxx . . $ min(9976ed6c9a6c4849). (long a, double b) { return (a<b) ? a : b; } |
| 76 | inline double mincxx . . $ min(3b6c2eefe8d0b5cf). (double a, long b) { return (a<b) ? a : b; } |
| 77 | inline double mincxx . . $ min(56fbb6e691990aa9). (float a, double b) { return (a<b) ? a : b; } |
| 78 | inline double mincxx . . $ min(9b6e50055d59cc37). (double a, float b) { return (a<b) ? a : b; } |
| 79 | |
| 80 | |
| 81 | #ifdef COMPILING_STANDALONEcxx . . $ `<built-in>:485:9`! |
| 82 | extern const char *g_jack_client_namecxx . . $ g_jack_client_name.; |
| 83 | extern bool g_autoconnectcxx . . $ g_autoconnect.; |
| 84 | #endif |
| 85 | |
| 86 | |
| 87 | |
| 88 | namespacecxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/{ |
| 89 | struct Metacxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Meta# |
| 90 | { |
| 91 | void declarecxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Meta#declare(2fa786934fe80e24). (const char* key, const char* value) { } |
| 92 | }; |
| 93 | } |
| 94 | #include "system_compressor.cpp"cxx . . $ `<file>/audio/system_compressor.cpp`/ |
| 95 | |
| 96 | |
| 97 | namespacecxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/{ |
| 98 | |
| 99 | class MyUIcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI# : public UIcxx . . $ UI# |
| 100 | { |
| 101 | |
| 102 | public: |
| 103 | void declarecxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#declare(295f22ccbfb41ed).(float* control_port, const char* key, const char* value) { |
| 104 | } |
| 105 | |
| 106 | const char *_curr_box_namecxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#_curr_box_name.; |
| 107 | |
| 108 | void openFrameBoxcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#openFrameBox(85c52e162fed56f9).(const char* label) {_curr_box_namecxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#_curr_box_name. = label;} |
| 109 | void openTabBoxcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#openTabBox(85c52e162fed56f9).(const char* label) {_curr_box_namecxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#_curr_box_name. = label;} |
| 110 | void openHorizontalBoxcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#openHorizontalBox(85c52e162fed56f9).(const char* label) {_curr_box_namecxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#_curr_box_name. = label;} |
| 111 | void openVerticalBoxcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#openVerticalBox(85c52e162fed56f9).(const char* label) {_curr_box_namecxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#_curr_box_name. = label;} |
| 112 | void closeBoxcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#closeBox(49f6e7a06ebc5aa8).() {_curr_box_namecxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#_curr_box_name. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;} |
| 113 | |
| 114 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<float*> _controllerscxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#_controllers.; |
| 115 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<float*> _graphscxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#_graphs.; |
| 116 | |
| 117 | void remove_last_itemcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#remove_last_item(49f6e7a06ebc5aa8).(){ |
| 118 | printf("Popping last effect\n"); |
| 119 | _controllerscxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#_controllers..pop_backcxx . . $ std/vector#pop_back(ced63f7c635d850d).(); |
| 120 | } |
| 121 | |
| 122 | void addEffectcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#addEffect(39123ded73c5d39d).(const char *name, float* control_port, float min_value, float default_value, float max_value){ |
| 123 | printf("Adding effect %s %p\n",name,control_port); |
| 124 | _controllerscxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#_controllers..push_backcxx . . $ std/vector#push_back(77d9f17553126ecb).(control_port); |
| 125 | } |
| 126 | |
| 127 | void addButtoncxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#addButton(d2efea74a95ba4f0).(const char* label, float* zone) { |
| 128 | addEffectcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#addEffect(39123ded73c5d39d).(label, zone, 0, 0, 1); |
| 129 | } |
| 130 | void addToggleButtoncxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#addToggleButton(d2efea74a95ba4f0).(const char* label, float* zone) { |
| 131 | addEffectcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#addEffect(39123ded73c5d39d).(label, zone, 0, 0, 1); |
| 132 | } |
| 133 | void addCheckButtoncxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#addCheckButton(d2efea74a95ba4f0).(const char* label, float* zone) { |
| 134 | addEffectcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#addEffect(39123ded73c5d39d).(label, zone, 0, 0, 1); |
| 135 | } |
| 136 | void addVerticalSlidercxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#addVerticalSlider(dd97e545ed932d9f).(const char* label, float* zone, float init, float min, float max, float step) { |
| 137 | addEffectcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#addEffect(39123ded73c5d39d).(label, zone, min, init, max); |
| 138 | } |
| 139 | void addHorizontalSlidercxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#addHorizontalSlider(dd97e545ed932d9f).(const char* label, float* zone, float init, float min, float max, float step) { |
| 140 | addEffectcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#addEffect(39123ded73c5d39d).(label, zone, min, init, max); |
| 141 | } |
| 142 | void addNumEntrycxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#addNumEntry(dd97e545ed932d9f).(const char* label, float* zone, float init, float min, float max, float step) { |
| 143 | addEffectcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#addEffect(39123ded73c5d39d).(label, zone, min, init, max); // The INT effect format might not work. Need to go through the code first. |
| 144 | } |
| 145 | |
| 146 | // -- passive widgets |
| 147 | |
| 148 | void addNumDisplaycxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#addNumDisplay(75b6969b25080c5b).(const char* label, float* zone, int precision) {remove_last_itemcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#remove_last_item(49f6e7a06ebc5aa8).();} |
| 149 | void addTextDisplaycxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#addTextDisplay(b0b4be5486cbde75).(const char* label, float* zone, const char* names[], float min, float max) {remove_last_itemcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#remove_last_item(49f6e7a06ebc5aa8).();} |
| 150 | void addHorizontalBargraphcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#addHorizontalBargraph(9c4395346a0a905e).(const char* label, float* zone, float min, float max) { |
| 151 | *zone = (min+max)/2; // init |
| 152 | _graphscxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#_graphs..push_backcxx . . $ std/vector#push_back(77d9f17553126ecb).(zone); |
| 153 | //remove_last_item(); // remove metadata |
| 154 | //next_peak = zone; |
| 155 | } |
| 156 | void addVerticalBargraphcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#addVerticalBargraph(9c4395346a0a905e).(const char* label, float* zone, float min, float max) { |
| 157 | *zone = (min+max)/2; // init |
| 158 | _graphscxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#_graphs..push_backcxx . . $ std/vector#push_back(77d9f17553126ecb).(zone); |
| 159 | //remove_last_item(); // remove metadata |
| 160 | //next_peak = zone; |
| 161 | } |
| 162 | |
| 163 | }; |
| 164 | |
| 165 | struct Compressor_wrappercxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper# : public Faust_system_compressorcxx . . $ Faust_system_compressor# { |
| 166 | MyUIcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI# uicxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#ui.; |
| 167 | |
| 168 | QStringcxx . . $ QString# keycxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#key.; // If not empty string, the memory for the object is placed in shared memory. |
| 169 | QSharedMemorycxx . . $ QSharedMemory# *sharedcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#shared.; |
| 170 | |
| 171 | #ifdef COMPILING_STANDALONEcxx . . $ `<built-in>:485:9`! |
| 172 | jackaudiocxx . . $ jackaudio# audiocxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#audio.; |
| 173 | #endif |
| 174 | |
| 175 | Compressor_wrappercxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#Compressor_wrapper(9364e6e7bff7660).(float sample_rate){ |
| 176 | sharedcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#shared.=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 177 | |
| 178 | #ifdef COMPILING_STANDALONEcxx . . $ `<built-in>:485:9`! |
| 179 | printf("\n\nCREATING 1\n\n"); |
| 180 | audiocxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#audio..initcxx . . $ jackaudio#init(6d24b0d766d974e1).(g_jack_client_namecxx . . $ g_jack_client_name., this); |
| 181 | audiocxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#audio..startcxx . . $ jackaudio#start(efaadfb7dc14930a).(g_autoconnectcxx . . $ g_autoconnect.); |
| 182 | #endif |
| 183 | |
| 184 | #ifdef COMPILING_RADIUM |
| 185 | init(sample_rate); |
| 186 | #endif |
| 187 | |
| 188 | buildUserInterfacecxx . . $ Faust_system_compressor#buildUserInterface(c644848e20fbf927).(&uicxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#ui.); |
| 189 | } |
| 190 | |
| 191 | |
| 192 | #ifdef COMPILING_STANDALONEcxx . . $ `<built-in>:485:9`! |
| 193 | ~cxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#`~Compressor_wrapper`(ced63f7c635d850d).Compressor_wrappercxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#(){ |
| 194 | printf("Closing\n"); |
| 195 | audiocxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#audio..stopcxx . . $ jackaudio#stop(49f6e7a06ebc5aa8).(); |
| 196 | } |
| 197 | |
| 198 | #endif |
| 199 | |
| 200 | #if 0 |
| 201 | void* operator new(size_t size){ |
| 202 | printf("Allocating %d bytes\n",(int)size); |
| 203 | return malloc(size); |
| 204 | } |
| 205 | void operator delete(void *p){ |
| 206 | printf("Freeing %p.\n",p); |
| 207 | free(p); |
| 208 | } |
| 209 | #endif |
| 210 | |
| 211 | //#endif |
| 212 | |
| 213 | }; |
| 214 | |
| 215 | } // anon. namespace |
| 216 | |
| 217 | |
| 218 | void *COMPRESSOR_create_sharedcxx . . $ COMPRESSOR_create_shared(fa95148d91245b0e).(float sample_rate){ |
| 219 | QStringcxx . . $ QString# key = "radium_crashreporter_" +cxx . . $ operator+(c75c3ae4eb9af1a8). QStringcxx . . $ QString#::numbercxx . . $ QString#number(391c8d1a7da534d1).(QDateTimecxx . . $ QDateTime#::currentMSecsSinceEpochcxx . . $ QDateTime#currentMSecsSinceEpoch(9969456818c7299).()); |
| 220 | QSharedMemorycxx . . $ QSharedMemory# *shared = new QSharedMemorycxx . . $ QSharedMemory#(key); |
| 221 | if(shared->createcxx . . $ QSharedMemory#create(81b6ab3714a70c32).(sizeof(Compressor_wrappercxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#))==false){ |
| 222 | fprintf(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!,"COMPRESSOR_create_shared: Couldn't create... Error: %s\n",shared->errorcxx . . $ QSharedMemory#error(435af832cf77eb41).()==QSharedMemorycxx . . $ QSharedMemory#::NoErrorcxx . . $ QSharedMemory#NoError.?"No error (?)":shared->errorStringcxx . . $ QSharedMemory#errorString(6ef7b6c27b00b43d).().toUtf8cxx . . $ QString#toUtf8(7c2073558a834e49).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).()); |
| 223 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; |
| 224 | } |
| 225 | |
| 226 | void *memory = shared->datacxx . . $ QSharedMemory#data(50c7df7de5344ebb).(); |
| 227 | |
| 228 | Compressor_wrappercxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper# *wrapper = new(memory) Compressor_wrappercxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#(sample_rate); |
| 229 | printf("memory: %p, shared: %p\n",memory,shared); |
| 230 | wrapper->keycxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#key. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). key; |
| 231 | wrapper->sharedcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#shared. = shared; |
| 232 | |
| 233 | return wrapper; |
| 234 | } |
| 235 | |
| 236 | void *COMPRESSOR_createcxx . . $ COMPRESSOR_create(fa95148d91245b0e).(float sample_rate){ |
| 237 | return new Compressor_wrappercxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#(sample_rate); |
| 238 | } |
| 239 | |
| 240 | |
| 241 | void *COMPRESSOR_create_from_shared_mem_keycxx . . $ COMPRESSOR_create_from_shared_mem_key(42228c1987407501).(const char *key){ |
| 242 | QSharedMemorycxx . . $ QSharedMemory# *shared = new QSharedMemorycxx . . $ QSharedMemory#(keycxx . . $ QString#QString(85c52e162fed56f9).); |
| 243 | return shared->datacxx . . $ QSharedMemory#data(50c7df7de5344ebb).(); |
| 244 | } |
| 245 | |
| 246 | /* |
| 247 | const char *COMPRESSOR_get_shared_mem_key(void *das_wrapper){ |
| 248 | Compressor_wrapper *wrapper = (Compressor_wrapper*)das_wrapper; |
| 249 | return wrapper->key.toAscii(); |
| 250 | } |
| 251 | */ |
| 252 | |
| 253 | #if COMPILING_STANDALONEcxx . . $ `<built-in>:485:9`! |
| 254 | extern char *g_shared_mem_keycxx . . $ g_shared_mem_key.; |
| 255 | #endif |
| 256 | |
| 257 | void COMPRESSOR_deletecxx . . $ COMPRESSOR_delete(5d22bdacc48458e8).(void *das_wrapper){ |
| 258 | #if COMPILING_STANDALONEcxx . . $ `<built-in>:485:9`! |
| 259 | if(g_shared_mem_keycxx . . $ g_shared_mem_key.!=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!){ |
| 260 | COMPRESSOR_delete_ladspa(das_wrapper); |
| 261 | return; |
| 262 | } |
| 263 | #endif |
| 264 | |
| 265 | Compressor_wrappercxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper# *wrapper = (Compressor_wrappercxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#*)das_wrapper; |
| 266 | if(wrapper->keycxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#key.==cxx . . $ QString#`operator==`(7d4bdb1abc417636)."") |
| 267 | delete wrapper; |
| 268 | else |
| 269 | wrapper->sharedcxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#shared.->detachcxx . . $ QSharedMemory#detach(c9857a73d68e59ba).(); |
| 270 | } |
| 271 | |
| 272 | float COMPRESSOR_get_parametercxx . . $ COMPRESSOR_get_parameter(d3d647948fff6b1c).(void *das_wrapper,int num){ |
| 273 | #if COMPILING_STANDALONEcxx . . $ `<built-in>:485:9`! |
| 274 | if(g_shared_mem_keycxx . . $ g_shared_mem_key.!=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) |
| 275 | return COMPRESSOR_get_ladspa_parameter(das_wrapper,num); |
| 276 | #endif |
| 277 | |
| 278 | Compressor_wrappercxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper# *wrapper = (Compressor_wrappercxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#*)das_wrapper; |
| 279 | float *controller = wrapper->uicxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#ui.._controllerscxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#_controllers..atcxx . . $ std/vector#at(428bb168810b9e52).(num); |
| 280 | return *controller; |
| 281 | } |
| 282 | |
| 283 | void COMPRESSOR_set_parametercxx . . $ COMPRESSOR_set_parameter(37455279038ff541).(void *das_wrapper,int num,float value){ |
| 284 | #if COMPILING_STANDALONEcxx . . $ `<built-in>:485:9`! |
| 285 | if(g_shared_mem_keycxx . . $ g_shared_mem_key.!=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!){ |
| 286 | COMPRESSOR_set_ladspa_parameter(das_wrapper,num,value); |
| 287 | return; |
| 288 | } |
| 289 | #endif |
| 290 | |
| 291 | Compressor_wrappercxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper# *wrapper = (Compressor_wrappercxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#*)das_wrapper; |
| 292 | float *controller = wrapper->uicxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#ui.._controllerscxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#_controllers..atcxx . . $ std/vector#at(428bb168810b9e52).(num); |
| 293 | *controller = value; |
| 294 | //printf("Setting controller %d (%p) to %f (%f)\n",num,controller,value,*controller); |
| 295 | } |
| 296 | |
| 297 | float COMPRESSOR_get_graph_valuecxx . . $ COMPRESSOR_get_graph_value(d3d647948fff6b1c).(void *das_wrapper, int num){ |
| 298 | #if COMPILING_STANDALONEcxx . . $ `<built-in>:485:9`! |
| 299 | if(g_shared_mem_keycxx . . $ g_shared_mem_key.!=NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) |
| 300 | return COMPRESSOR_get_ladspa_graph_value(das_wrapper,num); |
| 301 | #endif |
| 302 | |
| 303 | Compressor_wrappercxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper# *wrapper = (Compressor_wrappercxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#*)das_wrapper; |
| 304 | float *controller = wrapper->uicxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#ui.._graphscxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/MyUI#_graphs..atcxx . . $ std/vector#at(428bb168810b9e52).(num); |
| 305 | return *controller; |
| 306 | } |
| 307 | |
| 308 | void COMPRESSOR_processcxx . . $ COMPRESSOR_process(f394e963a8a9f8db).(void *das_wrapper, float **inputs, float **outputs, int num_frames){ |
| 309 | Compressor_wrappercxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper# *wrapper = (Compressor_wrappercxx . . $ `$anonymous_namespace_audio/system_compressor_wrapper.cpp`/Compressor_wrapper#*)das_wrapper; |
| 310 | wrapper->computecxx . . $ Faust_system_compressor#compute(4254ec6c518224ca).(num_frames, inputs, outputs); |
| 311 | } |
| 312 |