Debian Codegraph @

ags/audio/fx/ags_fx_lv2_channel.c

raw symbols SCIP
1 /* GSequencer - Advanced GTK Sequencer
2 * Copyright (C) 2005-2025 Joël Krähemann
3 *
4 * This file is part of GSequencer.
5 *
6 * GSequencer is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * GSequencer is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with GSequencer. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #include <ags/audio/fx/ags_fx_lv2_channel.h>cxx . . $ `<file>/ags/audio/fx/ags_fx_lv2_channel.h`/
21
22 #include <ags/plugin/ags_lv2_manager.h>cxx . . $ `<file>/ags/plugin/ags_lv2_manager.h`/
23 #include <ags/plugin/ags_lv2_plugin.h>cxx . . $ `<file>/ags/plugin/ags_lv2_plugin.h`/
24 #include <ags/plugin/ags_base_plugin.h>cxx . . $ `<file>/ags/plugin/ags_base_plugin.h`/
25 #include <ags/plugin/ags_plugin_port.h>cxx . . $ `<file>/ags/plugin/ags_plugin_port.h`/
26
27 #include <ags/audio/ags_output.h>cxx . . $ `<file>/ags/audio/ags_output.h`/
28 #include <ags/audio/ags_input.h>cxx . . $ `<file>/ags/audio/ags_input.h`/
29 #include <ags/audio/ags_port_util.h>cxx . . $ `<file>/ags/audio/ags_port_util.h`/
30
31 #include <ags/audio/fx/ags_fx_lv2_audio.h>cxx . . $ `<file>/ags/audio/fx/ags_fx_lv2_audio.h`/
32
33 #include <ags/i18n.h>cxx . . $ `<file>/ags/i18n.h`/
34
35 void ags_fx_lv2_channel_class_initcxx . . $ ags_fx_lv2_channel_class_init(ae96eb35ea3a7536).(AgsFxLv2ChannelClasscxx . . $ AgsFxLv2ChannelClass# *fx_lv2_channel);
36 void ags_fx_lv2_channel_initcxx . . $ ags_fx_lv2_channel_init(6b22263b2fffcaab).(AgsFxLv2Channelcxx . . $ AgsFxLv2Channel# *fx_lv2_channel);
37 void ags_fx_lv2_channel_disposecxx . . $ ags_fx_lv2_channel_dispose(6087475fa43034d3).(GObjectcxx . . $ GObject# *gobject);
38 void ags_fx_lv2_channel_finalizecxx . . $ ags_fx_lv2_channel_finalize(6087475fa43034d3).(GObjectcxx . . $ GObject# *gobject);
39
40 void ags_fx_lv2_channel_notify_filename_callbackcxx . . $ ags_fx_lv2_channel_notify_filename_callback(4ebbded80fa75af1).(GObjectcxx . . $ GObject# *gobject,
41 GParamSpeccxx . . $ GParamSpec# *pspec,
42 gpointercxx . . $ gpointer# user_data);
43 void ags_fx_lv2_channel_notify_effect_callbackcxx . . $ ags_fx_lv2_channel_notify_effect_callback(4ebbded80fa75af1).(GObjectcxx . . $ GObject# *gobject,
44 GParamSpeccxx . . $ GParamSpec# *pspec,
45 gpointercxx . . $ gpointer# user_data);
46 void ags_fx_lv2_channel_notify_buffer_size_callbackcxx . . $ ags_fx_lv2_channel_notify_buffer_size_callback(4ebbded80fa75af1).(GObjectcxx . . $ GObject# *gobject,
47 GParamSpeccxx . . $ GParamSpec# *pspec,
48 gpointercxx . . $ gpointer# user_data);
49 void ags_fx_lv2_channel_notify_samplerate_callbackcxx . . $ ags_fx_lv2_channel_notify_samplerate_callback(4ebbded80fa75af1).(GObjectcxx . . $ GObject# *gobject,
50 GParamSpeccxx . . $ GParamSpec# *pspec,
51 gpointercxx . . $ gpointer# user_data);
52
53 /**
54 * SECTION:ags_fx_lv2_channel
55 * @short_description: fx lv2 channel
56 * @title: AgsFxLv2Channel
57 * @section_id:
58 * @include: ags/audio/fx/ags_fx_lv2_channel.h
59 *
60 * The #AgsFxLv2Channel class provides ports to the effect processor.
61 */
62
63 static gpointercxx . . $ gpointer# ags_fx_lv2_channel_parent_classcxx . . $ ags_fx_lv2_channel_parent_class. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
64
65 const gcharcxx . . $ gchar# *ags_fx_lv2_channel_plugin_namecxx . . $ ags_fx_lv2_channel_plugin_name. = "ags-fx-lv2";
66
67 GTypecxx . . $ GType#
68 ags_fx_lv2_channel_get_typecxx . . $ ags_fx_lv2_channel_get_type(7b3bcd0168edf51f).()
69 {
70 static gsizecxx . . $ gsize# g_define_type_id__static = 0;
71
72 if(g_once_init_entercxx . . $ `<external>/457917468643292165/gthread.h:270:10`!(&g_define_type_id__static)){
73 GTypecxx . . $ GType# ags_type_fx_lv2_channel = 0;
74
75 static const GTypeInfocxx . . $ GTypeInfo# ags_fx_lv2_channel_info = {
76 sizeof (AgsFxLv2ChannelClasscxx . . $ AgsFxLv2ChannelClass#),
77 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, /* base_init */
78 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, /* base_finalize */
79 (GClassInitFunccxx . . $ GClassInitFunc#) ags_fx_lv2_channel_class_initcxx . . $ ags_fx_lv2_channel_class_init(ae96eb35ea3a7536).,
80 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, /* class_finalize */
81 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, /* class_channel */
82 sizeof (AgsFxLv2Channelcxx . . $ AgsFxLv2Channel#),
83 0, /* n_preallocs */
84 (GInstanceInitFunccxx . . $ GInstanceInitFunc#) ags_fx_lv2_channel_initcxx . . $ ags_fx_lv2_channel_init(6b22263b2fffcaab).,
85 };
86
87 ags_type_fx_lv2_channel = g_type_register_staticcxx . . $ g_type_register_static(805a40cfa272e950).(AGS_TYPE_FX_NOTATION_CHANNELcxx . . $ `ags/audio/fx/ags_fx_notation_channel.h:33:9`!,
88 "AgsFxLv2Channel",
89 &ags_fx_lv2_channel_info,
90 0);
91
92 g_once_init_leavecxx . . $ `<external>/457917468643292165/gthread.h:277:10`!(&g_define_type_id__static, ags_type_fx_lv2_channel);
93 }
94
95 return(g_define_type_id__static);
96 }
97
98 void
99 ags_fx_lv2_channel_class_initcxx . . $ ags_fx_lv2_channel_class_init(ae96eb35ea3a7536).(AgsFxLv2ChannelClasscxx . . $ AgsFxLv2ChannelClass# *fx_lv2_channel)
100 {
101 GObjectClasscxx . . $ GObjectClass# *gobject;
102
103 ags_fx_lv2_channel_parent_classcxx . . $ ags_fx_lv2_channel_parent_class. = g_type_class_peek_parentcxx . . $ g_type_class_peek_parent(9f162e79bfc6c74).(fx_lv2_channel);
104
105 /* GObjectClass */
106 gobject = (GObjectClasscxx . . $ GObjectClass# *) fx_lv2_channel;
107
108 gobject->disposecxx . . $ _GObjectClass#dispose. = ags_fx_lv2_channel_disposecxx . . $ ags_fx_lv2_channel_dispose(6087475fa43034d3).;
109 gobject->finalizecxx . . $ _GObjectClass#finalize. = ags_fx_lv2_channel_finalizecxx . . $ ags_fx_lv2_channel_finalize(6087475fa43034d3).;
110 }
111
112 void
113 ags_fx_lv2_channel_initcxx . . $ ags_fx_lv2_channel_init(6b22263b2fffcaab).(AgsFxLv2Channelcxx . . $ AgsFxLv2Channel# *fx_lv2_channel)
114 {
115 guintcxx . . $ guint# i;
116
117 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`!(fx_lv2_channel, "notify::filename",
118 G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`!(ags_fx_lv2_channel_notify_filename_callback), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
119
120 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`!(fx_lv2_channel, "notify::effect",
121 G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`!(ags_fx_lv2_channel_notify_effect_callback), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
122
123 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`!(fx_lv2_channel, "notify::buffer-size",
124 G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`!(ags_fx_lv2_channel_notify_buffer_size_callback), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
125
126 g_signal_connectcxx . . $ `<external>/15952772511652638895/gsignal.h:548:9`!(fx_lv2_channel, "notify::samplerate",
127 G_CALLBACKcxx . . $ `<external>/16473872192229286895/gclosure.h:73:9`!(ags_fx_lv2_channel_notify_samplerate_callback), NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
128
129 AGS_RECALLcxx . . $ `ags/audio/ags_recall.h:41:9`!(fx_lv2_channel)->namecxx . . $ _AgsRecall#name. = "ags-fx-lv2";
130 AGS_RECALLcxx . . $ `ags/audio/ags_recall.h:41:9`!(fx_lv2_channel)->versioncxx . . $ _AgsRecall#version. = AGS_RECALL_DEFAULT_VERSIONcxx . . $ `ags/audio/ags_recall.h:137:9`!;
131 AGS_RECALLcxx . . $ `ags/audio/ags_recall.h:41:9`!(fx_lv2_channel)->build_idcxx . . $ _AgsRecall#build_id. = AGS_RECALL_DEFAULT_BUILD_IDcxx . . $ `ags/audio/ags_recall.h:138:9`!;
132 AGS_RECALLcxx . . $ `ags/audio/ags_recall.h:41:9`!(fx_lv2_channel)->xml_typecxx . . $ _AgsRecall#xml_type. = "ags-fx-lv2-channel";
133
134 fx_lv2_channel->output_port_countcxx . . $ _AgsFxLv2Channel#output_port_count. = 0;
135 fx_lv2_channel->output_portcxx . . $ _AgsFxLv2Channel#output_port. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
136
137 fx_lv2_channel->input_port_countcxx . . $ _AgsFxLv2Channel#input_port_count. = 0;
138 fx_lv2_channel->input_portcxx . . $ _AgsFxLv2Channel#input_port. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
139
140 /* input data */
141 for(i = 0; i < AGS_SOUND_SCOPE_LASTcxx . . $ AGS_SOUND_SCOPE_LAST.; i++){
142 fx_lv2_channel->input_datacxx . . $ _AgsFxLv2Channel#input_data.[i] = ags_fx_lv2_channel_input_data_alloccxx . . $ ags_fx_lv2_channel_input_data_alloc(c0f195d2ac8af26).();
143
144 fx_lv2_channel->input_datacxx . . $ _AgsFxLv2Channel#input_data.[i]->parentcxx . . $ _AgsFxLv2ChannelInputData#parent. = fx_lv2_channel;
145 }
146
147 fx_lv2_channel->lv2_plugincxx . . $ _AgsFxLv2Channel#lv2_plugin. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
148
149 fx_lv2_channel->lv2_portcxx . . $ _AgsFxLv2Channel#lv2_port. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
150 }
151
152 void
153 ags_fx_lv2_channel_disposecxx . . $ ags_fx_lv2_channel_dispose(6087475fa43034d3).(GObjectcxx . . $ GObject# *gobject)
154 {
155 AgsFxLv2Channelcxx . . $ AgsFxLv2Channel# *fx_lv2_channel;
156
157 fx_lv2_channel = AGS_FX_LV2_CHANNELcxx . . $ `ags/audio/fx/ags_fx_lv2_channel.h:44:9`!(gobject);
158
159 /* call parent */
160 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`!(ags_fx_lv2_channel_parent_class)->disposecxx . . $ _GObjectClass#dispose.(gobject);
161 }
162
163 void
164 ags_fx_lv2_channel_finalizecxx . . $ ags_fx_lv2_channel_finalize(6087475fa43034d3).(GObjectcxx . . $ GObject# *gobject)
165 {
166 AgsPortcxx . . $ AgsPort# **iter;
167 AgsFxLv2Channelcxx . . $ AgsFxLv2Channel# *fx_lv2_channel;
168
169 guintcxx . . $ guint# i;
170
171 fx_lv2_channel = AGS_FX_LV2_CHANNELcxx . . $ `ags/audio/fx/ags_fx_lv2_channel.h:44:9`!(gobject);
172
173 g_freecxx . . $ g_free(5d22bdacc48458e8).(fx_lv2_channel->output_portcxx . . $ _AgsFxLv2Channel#output_port.);
174 g_freecxx . . $ g_free(5d22bdacc48458e8).(fx_lv2_channel->input_portcxx . . $ _AgsFxLv2Channel#input_port.);
175
176 for(i = 0; i < AGS_SOUND_SCOPE_LASTcxx . . $ AGS_SOUND_SCOPE_LAST.; i++){
177 ags_fx_lv2_channel_input_data_freecxx . . $ ags_fx_lv2_channel_input_data_free(ba8269de8a0bdafb).(fx_lv2_channel->input_datacxx . . $ _AgsFxLv2Channel#input_data.[i]);
178
179 fx_lv2_channel->input_datacxx . . $ _AgsFxLv2Channel#input_data.[i] = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
180 }
181
182 if(fx_lv2_channel->lv2_plugincxx . . $ _AgsFxLv2Channel#lv2_plugin. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
183 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(fx_lv2_channel->lv2_plugincxx . . $ _AgsFxLv2Channel#lv2_plugin.);
184
185 fx_lv2_channel->lv2_plugincxx . . $ _AgsFxLv2Channel#lv2_plugin. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
186 }
187
188 if(fx_lv2_channel->lv2_portcxx . . $ _AgsFxLv2Channel#lv2_port. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
189 for(iter = fx_lv2_channel->lv2_portcxx . . $ _AgsFxLv2Channel#lv2_port.; iter[0] != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; iter++){
190 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(iter[0]);
191 }
192
193 g_freecxx . . $ g_free(5d22bdacc48458e8).(fx_lv2_channel->lv2_portcxx . . $ _AgsFxLv2Channel#lv2_port.);
194
195 fx_lv2_channel->lv2_portcxx . . $ _AgsFxLv2Channel#lv2_port. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
196 }
197
198 /* call parent */
199 G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`!(ags_fx_lv2_channel_parent_class)->finalizecxx . . $ _GObjectClass#finalize.(gobject);
200 }
201
202 void
203 ags_fx_lv2_channel_notify_filename_callbackcxx . . $ ags_fx_lv2_channel_notify_filename_callback(4ebbded80fa75af1).(GObjectcxx . . $ GObject# *gobject,
204 GParamSpeccxx . . $ GParamSpec# *pspec,
205 gpointercxx . . $ gpointer# user_data)
206 {
207 AgsFxLv2Channelcxx . . $ AgsFxLv2Channel# *fx_lv2_channel;
208
209 AgsLv2Managercxx . . $ AgsLv2Manager# *lv2_manager;
210
211 gcharcxx . . $ gchar# *filename, *effect;
212
213 GRecMutexcxx . . $ GRecMutex# *recall_mutex;
214
215 fx_lv2_channel = AGS_FX_LV2_CHANNELcxx . . $ `ags/audio/fx/ags_fx_lv2_channel.h:44:9`!(gobject);
216
217 lv2_manager = ags_lv2_manager_get_instancecxx . . $ ags_lv2_manager_get_instance(362363bd1ffcbe06).();
218
219 /* get recall mutex */
220 recall_mutex = AGS_RECALL_GET_OBJ_MUTEXcxx . . $ `ags/audio/ags_recall.h:49:9`!(fx_lv2_channel);
221
222 filename = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
223 effect = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
224
225 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_lv2_channel,
226 "filename", &filename,
227 "effect", &effect,
228 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
229
230 /* get lv2 plugin */
231 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(recall_mutex);
232
233 if(filename != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
234 effect != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
235 fx_lv2_channel->lv2_plugincxx . . $ _AgsFxLv2Channel#lv2_plugin. = ags_lv2_manager_find_lv2_plugincxx . . $ ags_lv2_manager_find_lv2_plugin(1ec983d400ed0840).(lv2_manager,
236 filename, effect);
237
238 if(fx_lv2_channel->lv2_plugincxx . . $ _AgsFxLv2Channel#lv2_plugin. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
239 g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`!(fx_lv2_channel->lv2_plugin);
240 }
241 }
242
243 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(recall_mutex);
244
245 g_freecxx . . $ g_free(5d22bdacc48458e8).(filename);
246 g_freecxx . . $ g_free(5d22bdacc48458e8).(effect);
247 }
248
249 void
250 ags_fx_lv2_channel_notify_effect_callbackcxx . . $ ags_fx_lv2_channel_notify_effect_callback(4ebbded80fa75af1).(GObjectcxx . . $ GObject# *gobject,
251 GParamSpeccxx . . $ GParamSpec# *pspec,
252 gpointercxx . . $ gpointer# user_data)
253 {
254 AgsFxLv2Channelcxx . . $ AgsFxLv2Channel# *fx_lv2_channel;
255
256 AgsLv2Managercxx . . $ AgsLv2Manager# *lv2_manager;
257
258 gcharcxx . . $ gchar# *filename, *effect;
259
260 GRecMutexcxx . . $ GRecMutex# *recall_mutex;
261
262 fx_lv2_channel = AGS_FX_LV2_CHANNELcxx . . $ `ags/audio/fx/ags_fx_lv2_channel.h:44:9`!(gobject);
263
264 lv2_manager = ags_lv2_manager_get_instancecxx . . $ ags_lv2_manager_get_instance(362363bd1ffcbe06).();
265
266 /* get recall mutex */
267 recall_mutex = AGS_RECALL_GET_OBJ_MUTEXcxx . . $ `ags/audio/ags_recall.h:49:9`!(fx_lv2_channel);
268
269 filename = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
270 effect = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
271
272 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_lv2_channel,
273 "filename", &filename,
274 "effect", &effect,
275 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
276
277 /* get lv2 plugin */
278 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(recall_mutex);
279
280 if(filename != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
281 effect != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
282 fx_lv2_channel->lv2_plugincxx . . $ _AgsFxLv2Channel#lv2_plugin. = ags_lv2_manager_find_lv2_plugincxx . . $ ags_lv2_manager_find_lv2_plugin(1ec983d400ed0840).(lv2_manager,
283 filename, effect);
284
285 if(fx_lv2_channel->lv2_plugincxx . . $ _AgsFxLv2Channel#lv2_plugin. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
286 g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`!(fx_lv2_channel->lv2_plugin);
287 }
288 }
289
290 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(recall_mutex);
291
292 g_freecxx . . $ g_free(5d22bdacc48458e8).(filename);
293 g_freecxx . . $ g_free(5d22bdacc48458e8).(effect);
294 }
295
296 void
297 ags_fx_lv2_channel_notify_buffer_size_callbackcxx . . $ ags_fx_lv2_channel_notify_buffer_size_callback(4ebbded80fa75af1).(GObjectcxx . . $ GObject# *gobject,
298 GParamSpeccxx . . $ GParamSpec# *pspec,
299 gpointercxx . . $ gpointer# user_data)
300 {
301 AgsFxLv2Channelcxx . . $ AgsFxLv2Channel# *fx_lv2_channel;
302
303 guintcxx . . $ guint# output_port_count, input_port_count;
304 guintcxx . . $ guint# buffer_size;
305 guintcxx . . $ guint# i;
306
307 GRecMutexcxx . . $ GRecMutex# *recall_mutex;
308
309 fx_lv2_channel = AGS_FX_LV2_CHANNELcxx . . $ `ags/audio/fx/ags_fx_lv2_channel.h:44:9`!(gobject);
310
311 if(!ags_recall_test_state_flagscxx . . $ ags_recall_test_state_flags(1299249284e348f).(AGS_RECALLcxx . . $ `ags/audio/ags_recall.h:41:9`!(fx_lv2_channel),
312 AGS_SOUND_STATE_PORT_LOADEDcxx . . $ AGS_SOUND_STATE_PORT_LOADED.)){
313 return;
314 }
315
316 /* get recall mutex */
317 recall_mutex = AGS_RECALL_GET_OBJ_MUTEXcxx . . $ `ags/audio/ags_recall.h:49:9`!(fx_lv2_channel);
318
319 /* get buffer size */
320 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_lv2_channel,
321 "buffer-size", &buffer_size,
322 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
323
324 /* reallocate buffer - apply buffer size */
325 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(recall_mutex);
326
327 output_port_count = fx_lv2_channel->output_port_countcxx . . $ _AgsFxLv2Channel#output_port_count.;
328 input_port_count = fx_lv2_channel->input_port_countcxx . . $ _AgsFxLv2Channel#input_port_count.;
329
330 for(i = 0; i < AGS_SOUND_SCOPE_LASTcxx . . $ AGS_SOUND_SCOPE_LAST.; i++){
331 AgsFxLv2ChannelInputDatacxx . . $ AgsFxLv2ChannelInputData# *input_data;
332
333 input_data = fx_lv2_channel->input_datacxx . . $ _AgsFxLv2Channel#input_data.[i];
334
335 if(output_port_count > 0 &&
336 buffer_size > 0){
337 if(input_data->outputcxx . . $ _AgsFxLv2ChannelInputData#output. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
338 input_data->outputcxx . . $ _AgsFxLv2ChannelInputData#output. = (float *) g_malloccxx . . $ g_malloc(bfcfa4d6b7f7ef64).(output_port_count * buffer_size * sizeof(float));
339
340 input_data->output_sizecxx . . $ _AgsFxLv2ChannelInputData#output_size. = buffer_size;
341 }else{
342 input_data->outputcxx . . $ _AgsFxLv2ChannelInputData#output. = (float *) g_realloccxx . . $ g_realloc(417ab160f6baadc6).(input_data->outputcxx . . $ _AgsFxLv2ChannelInputData#output.,
343 output_port_count * buffer_size * sizeof(float));
344
345 input_data->output_sizecxx . . $ _AgsFxLv2ChannelInputData#output_size. = buffer_size;
346 }
347 }else{
348 g_freecxx . . $ g_free(5d22bdacc48458e8).(input_data->outputcxx . . $ _AgsFxLv2ChannelInputData#output.);
349
350 input_data->outputcxx . . $ _AgsFxLv2ChannelInputData#output. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
351
352 input_data->output_sizecxx . . $ _AgsFxLv2ChannelInputData#output_size. = 0;
353 }
354
355 if(input_port_count > 0 &&
356 buffer_size > 0){
357 if(input_data->inputcxx . . $ _AgsFxLv2ChannelInputData#input. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
358 input_data->inputcxx . . $ _AgsFxLv2ChannelInputData#input. = (float *) g_malloccxx . . $ g_malloc(bfcfa4d6b7f7ef64).(input_port_count * buffer_size * sizeof(float));
359
360 input_data->input_sizecxx . . $ _AgsFxLv2ChannelInputData#input_size. = buffer_size;
361 }else{
362 input_data->inputcxx . . $ _AgsFxLv2ChannelInputData#input. = (float *) g_realloccxx . . $ g_realloc(417ab160f6baadc6).(input_data->inputcxx . . $ _AgsFxLv2ChannelInputData#input.,
363 input_port_count * buffer_size * sizeof(float));
364
365 input_data->input_sizecxx . . $ _AgsFxLv2ChannelInputData#input_size. = buffer_size;
366 }
367 }else{
368 g_freecxx . . $ g_free(5d22bdacc48458e8).(input_data->inputcxx . . $ _AgsFxLv2ChannelInputData#input.);
369
370 input_data->inputcxx . . $ _AgsFxLv2ChannelInputData#input. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
371
372 input_data->input_sizecxx . . $ _AgsFxLv2ChannelInputData#input_size. = 0;
373 }
374 }
375
376 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(recall_mutex);
377 }
378
379 void
380 ags_fx_lv2_channel_notify_samplerate_callbackcxx . . $ ags_fx_lv2_channel_notify_samplerate_callback(4ebbded80fa75af1).(GObjectcxx . . $ GObject# *gobject,
381 GParamSpeccxx . . $ GParamSpec# *pspec,
382 gpointercxx . . $ gpointer# user_data)
383 {
384 AgsFxLv2Channelcxx . . $ AgsFxLv2Channel# *fx_lv2_channel;
385
386 AgsLv2Plugincxx . . $ AgsLv2Plugin# *lv2_plugin;
387
388 guintcxx . . $ guint# output_port_count;
389 guintcxx . . $ guint# buffer_size;
390 guintcxx . . $ guint# samplerate;
391 guintcxx . . $ guint# i;
392
393 GRecMutexcxx . . $ GRecMutex# *recall_mutex;
394 GRecMutexcxx . . $ GRecMutex# *base_plugin_mutex;
395
396 void (*deactivate)(LV2_Handlecxx . . $ LV2_Handle# instance);
397 void (*cleanup)(LV2_Handlecxx . . $ LV2_Handle# instance);
398
399 fx_lv2_channel = AGS_FX_LV2_CHANNELcxx . . $ `ags/audio/fx/ags_fx_lv2_channel.h:44:9`!(gobject);
400
401 if(!ags_recall_test_state_flagscxx . . $ ags_recall_test_state_flags(1299249284e348f).(AGS_RECALLcxx . . $ `ags/audio/ags_recall.h:41:9`!(fx_lv2_channel),
402 AGS_SOUND_STATE_PORT_LOADEDcxx . . $ AGS_SOUND_STATE_PORT_LOADED.)){
403 return;
404 }
405
406 /* get recall mutex */
407 recall_mutex = AGS_RECALL_GET_OBJ_MUTEXcxx . . $ `ags/audio/ags_recall.h:49:9`!(fx_lv2_channel);
408
409 /* get LV2 plugin */
410 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(recall_mutex);
411
412 lv2_plugin = fx_lv2_channel->lv2_plugincxx . . $ _AgsFxLv2Channel#lv2_plugin.;
413
414 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(recall_mutex);
415
416 if(lv2_plugin == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
417 return;
418 }
419
420 buffer_size = AGS_SOUNDCARD_DEFAULT_BUFFER_SIZEcxx . . $ `ags/object/ags_soundcard.h:51:9`!;
421 samplerate = AGS_SOUNDCARD_DEFAULT_SAMPLERATEcxx . . $ `ags/object/ags_soundcard.h:45:9`!;
422
423 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_lv2_channel,
424 "buffer-size", &buffer_size,
425 "samplerate", &samplerate,
426 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
427
428 /* get deactivate and cleanup */
429 base_plugin_mutex = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
430
431 deactivate = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
432 cleanup = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
433
434 if(lv2_plugin != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
435 gpointercxx . . $ gpointer# plugin_descriptor;
436
437 base_plugin_mutex = AGS_BASE_PLUGIN_GET_OBJ_MUTEXcxx . . $ `ags/plugin/ags_base_plugin.h:39:9`!(lv2_plugin);
438
439 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(base_plugin_mutex);
440
441 plugin_descriptor = AGS_BASE_PLUGINcxx . . $ `ags/plugin/ags_base_plugin.h:33:9`!(lv2_plugin)->plugin_descriptorcxx . . $ _AgsBasePlugin#plugin_descriptor.;
442
443 deactivate = AGS_LV2_PLUGIN_DESCRIPTORcxx . . $ `ags/plugin/ags_lv2_plugin.h:57:9`!(plugin_descriptor)->deactivatecxx . . $ LV2_Descriptor#deactivate.;
444 cleanup = AGS_LV2_PLUGIN_DESCRIPTORcxx . . $ `ags/plugin/ags_lv2_plugin.h:57:9`!(plugin_descriptor)->cleanupcxx . . $ LV2_Descriptor#cleanup.;
445
446 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(base_plugin_mutex);
447 }
448
449 /* reallocate buffer - apply samplerate */
450 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(recall_mutex);
451
452 for(i = 0; i < AGS_SOUND_SCOPE_LASTcxx . . $ AGS_SOUND_SCOPE_LAST.; i++){
453 AgsFxLv2ChannelInputDatacxx . . $ AgsFxLv2ChannelInputData# *input_data;
454
455 input_data = fx_lv2_channel->input_datacxx . . $ _AgsFxLv2Channel#input_data.[i];
456
457 if(deactivate != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
458 input_data->lv2_handlecxx . . $ _AgsFxLv2ChannelInputData#lv2_handle. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
459 deactivate(input_data->lv2_handlecxx . . $ _AgsFxLv2ChannelInputData#lv2_handle.[0]);
460 }
461
462 if(cleanup != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
463 input_data->lv2_handlecxx . . $ _AgsFxLv2ChannelInputData#lv2_handle. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
464 cleanup(input_data->lv2_handlecxx . . $ _AgsFxLv2ChannelInputData#lv2_handle.[0]);
465 }
466
467 input_data->lv2_handlecxx . . $ _AgsFxLv2ChannelInputData#lv2_handle. = ags_base_plugin_instantiatecxx . . $ ags_base_plugin_instantiate(3b22e154c7beea21).((AgsBasePlugincxx . . $ AgsBasePlugin# *) lv2_plugin,
468 samplerate, buffer_size);
469 }
470
471 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(recall_mutex);
472 }
473
474 /**
475 * ags_fx_lv2_channel_input_data_alloc:
476 *
477 * Allocate #AgsFxLv2ChannelInputData-struct
478 *
479 * Returns: the new #AgsFxLv2ChannelInputData-struct
480 *
481 * Since: 3.3.0
482 */
483 AgsFxLv2ChannelInputDatacxx . . $ AgsFxLv2ChannelInputData#*
484 ags_fx_lv2_channel_input_data_alloccxx . . $ ags_fx_lv2_channel_input_data_alloc(c0f195d2ac8af26).()
485 {
486 AgsFxLv2ChannelInputDatacxx . . $ AgsFxLv2ChannelInputData# *input_data;
487
488 input_data = (AgsFxLv2ChannelInputDatacxx . . $ AgsFxLv2ChannelInputData# *) g_malloccxx . . $ g_malloc(bfcfa4d6b7f7ef64).(sizeof(AgsFxLv2ChannelInputDatacxx . . $ AgsFxLv2ChannelInputData#));
489
490 g_rec_mutex_initcxx . . $ g_rec_mutex_init(70e02e1a6dfc5752).(&(input_data->strct_mutexcxx . . $ _AgsFxLv2ChannelInputData#strct_mutex.));
491
492 input_data->parentcxx . . $ _AgsFxLv2ChannelInputData#parent. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
493
494 input_data->outputcxx . . $ _AgsFxLv2ChannelInputData#output. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
495 input_data->output_sizecxx . . $ _AgsFxLv2ChannelInputData#output_size. = 0;
496
497 input_data->inputcxx . . $ _AgsFxLv2ChannelInputData#input. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
498 input_data->input_sizecxx . . $ _AgsFxLv2ChannelInputData#input_size. = 0;
499
500 input_data->lv2_handlecxx . . $ _AgsFxLv2ChannelInputData#lv2_handle. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
501
502 return(input_data);
503 }
504
505 /**
506 * ags_fx_lv2_channel_input_data_free:
507 * @input_data: the #AgsFxLv2ChannelInputData-struct
508 *
509 * Free @input_data.
510 *
511 * Since: 3.3.0
512 */
513 void
514 ags_fx_lv2_channel_input_data_freecxx . . $ ags_fx_lv2_channel_input_data_free(ba8269de8a0bdafb).(AgsFxLv2ChannelInputDatacxx . . $ AgsFxLv2ChannelInputData# *input_data)
515 {
516 AgsLv2Plugincxx . . $ AgsLv2Plugin# *lv2_plugin;
517
518 if(input_data == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
519 return;
520 }
521
522 g_freecxx . . $ g_free(5d22bdacc48458e8).(input_data->outputcxx . . $ _AgsFxLv2ChannelInputData#output.);
523 g_freecxx . . $ g_free(5d22bdacc48458e8).(input_data->inputcxx . . $ _AgsFxLv2ChannelInputData#input.);
524
525 if(input_data->lv2_handlecxx . . $ _AgsFxLv2ChannelInputData#lv2_handle. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
526 gpointercxx . . $ gpointer# plugin_descriptor;
527
528 GRecMutexcxx . . $ GRecMutex# *base_plugin_mutex;
529
530 void (*deactivate)(LV2_Handlecxx . . $ LV2_Handle# instance);
531 void (*cleanup)(LV2_Handlecxx . . $ LV2_Handle# instance);
532
533 lv2_plugin = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
534
535 deactivate = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
536 cleanup = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
537
538 base_plugin_mutex = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
539
540 if(input_data->parentcxx . . $ _AgsFxLv2ChannelInputData#parent. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
541 lv2_plugin = AGS_FX_LV2_CHANNELcxx . . $ `ags/audio/fx/ags_fx_lv2_channel.h:44:9`!(input_data->parent)->lv2_plugincxx . . $ _AgsFxLv2Channel#lv2_plugin.;
542 }
543
544 if(lv2_plugin != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
545 base_plugin_mutex = AGS_BASE_PLUGIN_GET_OBJ_MUTEXcxx . . $ `ags/plugin/ags_base_plugin.h:39:9`!(lv2_plugin);
546
547 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(base_plugin_mutex);
548
549 plugin_descriptor = AGS_BASE_PLUGINcxx . . $ `ags/plugin/ags_base_plugin.h:33:9`!(lv2_plugin)->plugin_descriptorcxx . . $ _AgsBasePlugin#plugin_descriptor.;
550
551 deactivate = AGS_LV2_PLUGIN_DESCRIPTORcxx . . $ `ags/plugin/ags_lv2_plugin.h:57:9`!(plugin_descriptor)->deactivatecxx . . $ LV2_Descriptor#deactivate.;
552 cleanup = AGS_LV2_PLUGIN_DESCRIPTORcxx . . $ `ags/plugin/ags_lv2_plugin.h:57:9`!(plugin_descriptor)->cleanupcxx . . $ LV2_Descriptor#cleanup.;
553
554 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(base_plugin_mutex);
555 }
556
557 if(deactivate != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
558 input_data->lv2_handlecxx . . $ _AgsFxLv2ChannelInputData#lv2_handle. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
559 deactivate(input_data->lv2_handlecxx . . $ _AgsFxLv2ChannelInputData#lv2_handle.[0]);
560 }
561
562 if(cleanup != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
563 input_data->lv2_handlecxx . . $ _AgsFxLv2ChannelInputData#lv2_handle. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
564 cleanup(input_data->lv2_handlecxx . . $ _AgsFxLv2ChannelInputData#lv2_handle.[0]);
565 }
566 }
567
568 g_freecxx . . $ g_free(5d22bdacc48458e8).(input_data);
569 }
570
571 /**
572 * ags_fx_lv2_channel_load_plugin:
573 * @fx_lv2_channel: the #AgsFxLv2Channel
574 *
575 * Load plugin of @fx_lv2_channel.
576 *
577 * Since: 3.3.0
578 */
579 void
580 ags_fx_lv2_channel_load_plugincxx . . $ ags_fx_lv2_channel_load_plugin(6b22263b2fffcaab).(AgsFxLv2Channelcxx . . $ AgsFxLv2Channel# *fx_lv2_channel)
581 {
582 AgsLv2Managercxx . . $ AgsLv2Manager# *lv2_manager;
583 AgsLv2Plugincxx . . $ AgsLv2Plugin# *lv2_plugin;
584
585 gcharcxx . . $ gchar# *filename, *effect;
586
587 guintcxx . . $ guint# buffer_size;
588 guintcxx . . $ guint# samplerate;
589 guintcxx . . $ guint# i;
590
591 GRecMutexcxx . . $ GRecMutex# *recall_mutex;
592
593 if(!AGS_IS_FX_LV2_CHANNELcxx . . $ `ags/audio/fx/ags_fx_lv2_channel.h:46:9`!(fx_lv2_channel) ||
594 ags_recall_test_state_flagscxx . . $ ags_recall_test_state_flags(1299249284e348f).(AGS_RECALLcxx . . $ `ags/audio/ags_recall.h:41:9`!(fx_lv2_channel),
595 AGS_SOUND_STATE_PLUGIN_LOADEDcxx . . $ AGS_SOUND_STATE_PLUGIN_LOADED.)){
596 return;
597 }
598
599 lv2_manager = ags_lv2_manager_get_instancecxx . . $ ags_lv2_manager_get_instance(362363bd1ffcbe06).();
600
601 /* get recall mutex */
602 recall_mutex = AGS_RECALL_GET_OBJ_MUTEXcxx . . $ `ags/audio/ags_recall.h:49:9`!(fx_lv2_channel);
603
604 /* get filename and effect */
605 filename = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
606 effect = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
607
608 buffer_size = AGS_SOUNDCARD_DEFAULT_BUFFER_SIZEcxx . . $ `ags/object/ags_soundcard.h:51:9`!;
609 samplerate = AGS_SOUNDCARD_DEFAULT_SAMPLERATEcxx . . $ `ags/object/ags_soundcard.h:45:9`!;
610
611 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_lv2_channel,
612 "filename", &filename,
613 "effect", &effect,
614 "buffer-size", &buffer_size,
615 "samplerate", &samplerate,
616 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
617
618 /* check if already loaded */
619 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(recall_mutex);
620
621 lv2_plugin = fx_lv2_channel->lv2_plugincxx . . $ _AgsFxLv2Channel#lv2_plugin.;
622
623 if(lv2_plugin == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
624 lv2_plugin =
625 fx_lv2_channel->lv2_plugincxx . . $ _AgsFxLv2Channel#lv2_plugin. = ags_lv2_manager_find_lv2_plugincxx . . $ ags_lv2_manager_find_lv2_plugin(1ec983d400ed0840).(lv2_manager,
626 filename, effect);
627
628 if(lv2_plugin != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
629 g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`!(lv2_plugin);
630 }
631 }
632
633 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(recall_mutex);
634
635 if(lv2_plugin == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! ||
636 ags_base_plugin_test_flagscxx . . $ ags_base_plugin_test_flags(7df5dd7d682415b9).((AgsBasePlugincxx . . $ AgsBasePlugin# *) lv2_plugin, AGS_BASE_PLUGIN_IS_INSTRUMENTcxx . . $ AGS_BASE_PLUGIN_IS_INSTRUMENT.)){
637 g_freecxx . . $ g_free(5d22bdacc48458e8).(filename);
638 g_freecxx . . $ g_free(5d22bdacc48458e8).(effect);
639
640 return;
641 }
642
643 /* set lv2 plugin */
644 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(recall_mutex);
645
646 for(i = 0; i < AGS_SOUND_SCOPE_LASTcxx . . $ AGS_SOUND_SCOPE_LAST.; i++){
647 AgsFxLv2ChannelInputDatacxx . . $ AgsFxLv2ChannelInputData# *input_data;
648
649 input_data = fx_lv2_channel->input_datacxx . . $ _AgsFxLv2Channel#input_data.[i];
650
651 if(input_data->lv2_handlecxx . . $ _AgsFxLv2ChannelInputData#lv2_handle. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
652 input_data->lv2_handlecxx . . $ _AgsFxLv2ChannelInputData#lv2_handle. = ags_base_plugin_instantiatecxx . . $ ags_base_plugin_instantiate(3b22e154c7beea21).((AgsBasePlugincxx . . $ AgsBasePlugin# *) lv2_plugin,
653 samplerate, buffer_size);
654 }
655 }
656
657 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(recall_mutex);
658
659 ags_recall_set_state_flagscxx . . $ ags_recall_set_state_flags(5cb9ac6396b158ec).(AGS_RECALLcxx . . $ `ags/audio/ags_recall.h:41:9`!(fx_lv2_channel),
660 AGS_SOUND_STATE_PLUGIN_LOADEDcxx . . $ AGS_SOUND_STATE_PLUGIN_LOADED.);
661
662 g_freecxx . . $ g_free(5d22bdacc48458e8).(filename);
663 g_freecxx . . $ g_free(5d22bdacc48458e8).(effect);
664 }
665
666 /**
667 * ags_fx_lv2_channel_load_port:
668 * @fx_lv2_channel: the #AgsFxLv2Channel
669 *
670 * Load port of @fx_lv2_channel.
671 *
672 * Since: 3.3.0
673 */
674 void
675 ags_fx_lv2_channel_load_portcxx . . $ ags_fx_lv2_channel_load_port(6b22263b2fffcaab).(AgsFxLv2Channelcxx . . $ AgsFxLv2Channel# *fx_lv2_channel)
676 {
677 AgsChannelcxx . . $ AgsChannel# *input;
678 AgsFxLv2Audiocxx . . $ AgsFxLv2Audio# *fx_lv2_audio;
679 AgsPortcxx . . $ AgsPort# **lv2_port;
680
681 AgsLv2Plugincxx . . $ AgsLv2Plugin# *lv2_plugin;
682
683 GTypecxx . . $ GType# channel_type;
684
685 GListcxx . . $ GList# *start_plugin_port, *plugin_port;
686
687 guintcxx . . $ guint# *output_port;
688 guintcxx . . $ guint# *input_port;
689
690 guintcxx . . $ guint# audio_channel;
691 guintcxx . . $ guint# pad;
692 guintcxx . . $ guint# line;
693 guintcxx . . $ guint# output_port_count, input_port_count;
694 guintcxx . . $ guint# control_port_count;
695 gbooleancxx . . $ gboolean# has_midiin_event_port;
696 guintcxx . . $ guint# midiin_event_port;
697 gbooleancxx . . $ gboolean# has_midiin_atom_port;
698 guintcxx . . $ guint# midiin_atom_port;
699 guintcxx . . $ guint# samplerate;
700 guintcxx . . $ guint# buffer_size;
701 guintcxx . . $ guint# nth;
702 guintcxx . . $ guint# i, j;
703 gbooleancxx . . $ gboolean# is_live_instrument;
704
705 GRecMutexcxx . . $ GRecMutex# *fx_lv2_audio_mutex;
706 GRecMutexcxx . . $ GRecMutex# *fx_lv2_channel_mutex;
707
708 if(!AGS_IS_FX_LV2_CHANNELcxx . . $ `ags/audio/fx/ags_fx_lv2_channel.h:46:9`!(fx_lv2_channel) ||
709 ags_recall_test_state_flagscxx . . $ ags_recall_test_state_flags(1299249284e348f).(AGS_RECALLcxx . . $ `ags/audio/ags_recall.h:41:9`!(fx_lv2_channel),
710 AGS_SOUND_STATE_PORT_LOADEDcxx . . $ AGS_SOUND_STATE_PORT_LOADED.)){
711 return;
712 }
713
714 fx_lv2_channel_mutex = AGS_RECALL_GET_OBJ_MUTEXcxx . . $ `ags/audio/ags_recall.h:49:9`!(fx_lv2_channel);
715
716 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(fx_lv2_channel_mutex);
717
718 if(fx_lv2_channel->lv2_portcxx . . $ _AgsFxLv2Channel#lv2_port. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
719 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(fx_lv2_channel_mutex);
720
721 return;
722 }
723
724 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(fx_lv2_channel_mutex);
725
726 fx_lv2_audio = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
727
728 samplerate = AGS_SOUNDCARD_DEFAULT_SAMPLERATEcxx . . $ `ags/object/ags_soundcard.h:45:9`!;
729 buffer_size = AGS_SOUNDCARD_DEFAULT_BUFFER_SIZEcxx . . $ `ags/object/ags_soundcard.h:51:9`!;
730
731 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_lv2_channel,
732 "recall-audio", &fx_lv2_audio,
733 "samplerate", &samplerate,
734 "buffer-size", &buffer_size,
735 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
736
737 if(fx_lv2_audio == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
738 return;
739 }
740
741 is_live_instrument = ags_fx_lv2_audio_test_flagscxx . . $ ags_fx_lv2_audio_test_flags(acca99075a501d8a).(fx_lv2_audio, AGS_FX_LV2_AUDIO_LIVE_INSTRUMENTcxx . . $ AGS_FX_LV2_AUDIO_LIVE_INSTRUMENT.);
742
743 if(is_live_instrument){
744 if(fx_lv2_audio != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
745 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(fx_lv2_audio);
746 }
747
748 return;
749 }
750
751 /* get recall mutex */
752 fx_lv2_audio_mutex = AGS_RECALL_GET_OBJ_MUTEXcxx . . $ `ags/audio/ags_recall.h:49:9`!(fx_lv2_audio);
753
754 input = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
755
756 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(fx_lv2_channel,
757 "source", &input,
758 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
759
760 line = ags_channel_get_linecxx . . $ ags_channel_get_line(8f8fffcabbe666c6).(input);
761
762 channel_type = (AGS_IS_OUTPUTcxx . . $ `ags/audio/ags_output.h:34:9`!(input)) ? AGS_TYPE_OUTPUTcxx . . $ `ags/audio/ags_output.h:31:9`!: AGS_TYPE_INPUTcxx . . $ `ags/audio/ags_input.h:32:9`!;
763
764 audio_channel = 0;
765 pad = 0;
766
767 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(input,
768 "audio-channel", &audio_channel,
769 "pad", &pad,
770 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
771
772 /* get LV2 plugin */
773 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(fx_lv2_audio_mutex);
774
775 lv2_plugin = fx_lv2_audio->lv2_plugincxx . . $ _AgsFxLv2Audio#lv2_plugin.;
776
777 output_port_count = fx_lv2_audio->output_port_countcxx . . $ _AgsFxLv2Audio#output_port_count.;
778 output_port = fx_lv2_audio->output_portcxx . . $ _AgsFxLv2Audio#output_port.;
779
780 input_port_count = fx_lv2_audio->input_port_countcxx . . $ _AgsFxLv2Audio#input_port_count.;
781 input_port = fx_lv2_audio->input_portcxx . . $ _AgsFxLv2Audio#input_port.;
782
783 has_midiin_event_port = fx_lv2_audio->has_midiin_event_portcxx . . $ _AgsFxLv2Audio#has_midiin_event_port.;
784 midiin_event_port = fx_lv2_audio->midiin_event_portcxx . . $ _AgsFxLv2Audio#midiin_event_port.;
785
786 has_midiin_atom_port = fx_lv2_audio->has_midiin_atom_portcxx . . $ _AgsFxLv2Audio#has_midiin_atom_port.;
787 midiin_atom_port = fx_lv2_audio->midiin_atom_portcxx . . $ _AgsFxLv2Audio#midiin_atom_port.;
788
789 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(fx_lv2_audio_mutex);
790
791 if(lv2_plugin == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! ||
792 ags_base_plugin_test_flagscxx . . $ ags_base_plugin_test_flags(7df5dd7d682415b9).((AgsBasePlugincxx . . $ AgsBasePlugin# *) lv2_plugin, AGS_BASE_PLUGIN_IS_INSTRUMENTcxx . . $ AGS_BASE_PLUGIN_IS_INSTRUMENT.)){
793 return;
794 }
795
796 /* get LV2 port */
797 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(fx_lv2_channel_mutex);
798
799 lv2_port = fx_lv2_channel->lv2_portcxx . . $ _AgsFxLv2Channel#lv2_port.;
800
801 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(fx_lv2_channel_mutex);
802
803 start_plugin_port = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
804
805 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(lv2_plugin,
806 "plugin-port", &start_plugin_port,
807 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
808
809 if(ags_base_plugin_test_flagscxx . . $ ags_base_plugin_test_flags(7df5dd7d682415b9).((AgsBasePlugincxx . . $ AgsBasePlugin# *) lv2_plugin, AGS_BASE_PLUGIN_IS_INSTRUMENTcxx . . $ AGS_BASE_PLUGIN_IS_INSTRUMENT.)){
810 /* get control port count */
811 plugin_port = start_plugin_port;
812
813 control_port_count = 0;
814
815 while(plugin_port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
816 if(ags_plugin_port_test_flagscxx . . $ ags_plugin_port_test_flags(af71b240cf69617a).(plugin_port->datacxx . . $ _GList#data.,
817 AGS_PLUGIN_PORT_CONTROLcxx . . $ AGS_PLUGIN_PORT_CONTROL.)){
818 control_port_count++;
819 }
820
821 plugin_port = plugin_port->nextcxx . . $ _GList#next.;
822 }
823
824 /* */
825 if(control_port_count > 0){
826 lv2_port = (AgsPortcxx . . $ AgsPort# **) g_malloccxx . . $ g_malloc(bfcfa4d6b7f7ef64).((control_port_count + 1) * sizeof(AgsPortcxx . . $ AgsPort# *));
827
828 plugin_port = start_plugin_port;
829
830 for(nth = 0; nth < control_port_count && plugin_port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; ){
831 if(ags_plugin_port_test_flagscxx . . $ ags_plugin_port_test_flags(af71b240cf69617a).(plugin_port->datacxx . . $ _GList#data.,
832 AGS_PLUGIN_PORT_CONTROLcxx . . $ AGS_PLUGIN_PORT_CONTROL.)){
833 AgsPluginPortcxx . . $ AgsPluginPort# *current_plugin_port;
834
835 gcharcxx . . $ gchar# *plugin_name;
836 gcharcxx . . $ gchar# *specifier;
837 gcharcxx . . $ gchar# *control_port;
838
839 guintcxx . . $ guint# port_index;
840
841 GValuecxx . . $ GValue# default_value = {0,};
842
843 GRecMutexcxx . . $ GRecMutex# *plugin_port_mutex;
844
845 current_plugin_port = AGS_PLUGIN_PORTcxx . . $ `ags/plugin/ags_plugin_port.h:31:9`!(plugin_port->data);
846
847 /* get plugin port mutex */
848 plugin_port_mutex = AGS_PLUGIN_PORT_GET_OBJ_MUTEXcxx . . $ `ags/plugin/ags_plugin_port.h:37:9`!(current_plugin_port);
849
850 /* plugin name, specifier and control port */
851 plugin_name = g_strdup_printfcxx . . $ g_strdup_printf(a849077ff1b8d812).("lv2-<%s>", lv2_plugin->uricxx . . $ _AgsLv2Plugin#uri.);
852
853 specifier = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
854
855 port_index = 0;
856
857 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(current_plugin_port,
858 "port-name", &specifier,
859 "port-index", &port_index,
860 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
861
862 control_port = g_strdup_printfcxx . . $ g_strdup_printf(a849077ff1b8d812).("%u/%u",
863 nth,
864 control_port_count);
865
866 /* default value */
867 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&default_value,
868 G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
869
870 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(plugin_port_mutex);
871
872 g_value_copycxx . . $ g_value_copy(76788ea28990d685).(current_plugin_port->default_valuecxx . . $ _AgsPluginPort#default_value.,
873 &default_value);
874
875 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(plugin_port_mutex);
876
877 /* lv2 port */
878 lv2_port[nth] = g_object_newcxx . . $ g_object_new(8485fe61b4be4c78).(AGS_TYPE_PORTcxx . . $ `ags/audio/ags_port.h:32:9`!,
879 "line", line,
880 "channel-type", channel_type,
881 "plugin-name", plugin_name,
882 "specifier", specifier,
883 "control-port", control_port,
884 "port-value-is-pointer", FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!,
885 "port-value-type", G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!,
886 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
887
888 if(ags_plugin_port_test_flagscxx . . $ ags_plugin_port_test_flags(af71b240cf69617a).(current_plugin_port,
889 AGS_PLUGIN_PORT_OUTPUTcxx . . $ AGS_PLUGIN_PORT_OUTPUT.)){
890 ags_port_set_flagscxx . . $ ags_port_set_flags(84830934707138c7).(lv2_port[nth], AGS_PORT_IS_OUTPUTcxx . . $ AGS_PORT_IS_OUTPUT.);
891
892 ags_recall_set_flagscxx . . $ ags_recall_set_flags(ca04eff694fc4130).((AgsRecallcxx . . $ AgsRecall# *) fx_lv2_channel,
893 AGS_RECALL_HAS_OUTPUT_PORTcxx . . $ AGS_RECALL_HAS_OUTPUT_PORT.);
894
895 }else{
896 if(!ags_plugin_port_test_flagscxx . . $ ags_plugin_port_test_flags(af71b240cf69617a).(current_plugin_port,
897 AGS_PLUGIN_PORT_INTEGERcxx . . $ AGS_PLUGIN_PORT_INTEGER.) &&
898 !ags_plugin_port_test_flagscxx . . $ ags_plugin_port_test_flags(af71b240cf69617a).(current_plugin_port,
899 AGS_PLUGIN_PORT_TOGGLEDcxx . . $ AGS_PLUGIN_PORT_TOGGLED.)){
900 ags_port_set_flagscxx . . $ ags_port_set_flags(84830934707138c7).(lv2_port[nth], AGS_PORT_INFINITE_RANGEcxx . . $ AGS_PORT_INFINITE_RANGE.);
901 }
902 }
903
904 g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d).(lv2_port[nth],
905 "plugin-port", current_plugin_port,
906 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
907
908 ags_port_util_load_lv2_conversioncxx . . $ ags_port_util_load_lv2_conversion(525ddcf43f9eb672).(lv2_port[nth],
909 current_plugin_port);
910
911 ags_port_safe_write_rawcxx . . $ ags_port_safe_write_raw(3f8c7b03f2be4a83).(lv2_port[nth],
912 &default_value);
913
914 ags_recall_add_portcxx . . $ ags_recall_add_port(6ead69b5866ab1f9).((AgsRecallcxx . . $ AgsRecall# *) fx_lv2_channel,
915 lv2_port[nth]);
916
917 /* connect port */
918 for(i = 0; i < AGS_SOUND_SCOPE_LASTcxx . . $ AGS_SOUND_SCOPE_LAST.; i++){
919 AgsFxLv2AudioScopeDatacxx . . $ AgsFxLv2AudioScopeData# *scope_data;
920
921 scope_data = fx_lv2_audio->scope_datacxx . . $ _AgsFxLv2Audio#scope_data.[i];
922
923 if(i == AGS_SOUND_SCOPE_PLAYBACKcxx . . $ AGS_SOUND_SCOPE_PLAYBACK. ||
924 i == AGS_SOUND_SCOPE_NOTATIONcxx . . $ AGS_SOUND_SCOPE_NOTATION. ||
925 i == AGS_SOUND_SCOPE_MIDIcxx . . $ AGS_SOUND_SCOPE_MIDI.){
926 for(j = 0; j < scope_data->audio_channelscxx . . $ _AgsFxLv2AudioScopeData#audio_channels.; j++){
927 AgsFxLv2AudioChannelDatacxx . . $ AgsFxLv2AudioChannelData# *channel_data;
928
929 channel_data = scope_data->channel_datacxx . . $ _AgsFxLv2AudioScopeData#channel_data.[j];
930
931 if(pad < 128){
932 AgsFxLv2AudioInputDatacxx . . $ AgsFxLv2AudioInputData# *input_data;
933
934 input_data = channel_data->input_datacxx . . $ _AgsFxLv2AudioChannelData#input_data.[pad];
935
936 if(input_data->lv2_handlecxx . . $ _AgsFxLv2AudioInputData#lv2_handle. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
937 input_data->lv2_handlecxx . . $ _AgsFxLv2AudioInputData#lv2_handle. = ags_base_plugin_instantiatecxx . . $ ags_base_plugin_instantiate(3b22e154c7beea21).((AgsBasePlugincxx . . $ AgsBasePlugin# *) lv2_plugin,
938 samplerate, buffer_size);
939 }
940
941 ags_base_plugin_connect_portcxx . . $ ags_base_plugin_connect_port(972b1340e982144f).((AgsBasePlugincxx . . $ AgsBasePlugin# *) lv2_plugin,
942 (gpointercxx . . $ gpointer#) input_data->lv2_handlecxx . . $ _AgsFxLv2AudioInputData#lv2_handle.[0],
943 port_index,
944 (gpointercxx . . $ gpointer#) &(lv2_port[nth]->port_valuecxx . . $ _AgsPort#port_value..ags_port_floatcxx . . $ _AgsPortValue#ags_port_float.));
945 }
946 }
947 }
948 }
949
950 g_freecxx . . $ g_free(5d22bdacc48458e8).(plugin_name);
951 g_freecxx . . $ g_free(5d22bdacc48458e8).(specifier);
952 g_freecxx . . $ g_free(5d22bdacc48458e8).(control_port);
953
954 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&default_value);
955
956 nth++;
957 }
958
959 plugin_port = plugin_port->nextcxx . . $ _GList#next.;
960 }
961
962 lv2_port[nth] = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
963 }
964
965 /* set LV2 output */
966 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(fx_lv2_channel_mutex);
967
968 for(i = 0; i < AGS_SOUND_SCOPE_LASTcxx . . $ AGS_SOUND_SCOPE_LAST.; i++){
969 AgsFxLv2AudioScopeDatacxx . . $ AgsFxLv2AudioScopeData# *scope_data;
970
971 scope_data = fx_lv2_audio->scope_datacxx . . $ _AgsFxLv2Audio#scope_data.[i];
972
973 if(i == AGS_SOUND_SCOPE_PLAYBACKcxx . . $ AGS_SOUND_SCOPE_PLAYBACK. ||
974 i == AGS_SOUND_SCOPE_NOTATIONcxx . . $ AGS_SOUND_SCOPE_NOTATION. ||
975 i == AGS_SOUND_SCOPE_MIDIcxx . . $ AGS_SOUND_SCOPE_MIDI.){
976 AgsFxLv2AudioChannelDatacxx . . $ AgsFxLv2AudioChannelData# *channel_data;
977
978 channel_data = scope_data->channel_datacxx . . $ _AgsFxLv2AudioScopeData#channel_data.[audio_channel];
979
980 if(!is_live_instrument){
981 AgsFxLv2AudioInputDatacxx . . $ AgsFxLv2AudioInputData# *input_data;
982
983 guintcxx . . $ guint# nth;
984
985 input_data = channel_data->input_datacxx . . $ _AgsFxLv2AudioChannelData#input_data.[pad];
986
987 if(input_data->outputcxx . . $ _AgsFxLv2AudioInputData#output. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
988 output_port_count > 0 &&
989 buffer_size > 0){
990 input_data->outputcxx . . $ _AgsFxLv2AudioInputData#output. = (float *) g_malloccxx . . $ g_malloc(bfcfa4d6b7f7ef64).(output_port_count * buffer_size * sizeof(float));
991 }else{
992 g_freecxx . . $ g_free(5d22bdacc48458e8).(input_data->outputcxx . . $ _AgsFxLv2AudioInputData#output.);
993
994 input_data->outputcxx . . $ _AgsFxLv2AudioInputData#output. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
995
996 input_data->output_sizecxx . . $ _AgsFxLv2AudioInputData#output_size. = 0;
997 }
998
999 if(input_data->inputcxx . . $ _AgsFxLv2AudioInputData#input. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
1000 input_port_count > 0 &&
1001 buffer_size > 0){
1002 input_data->inputcxx . . $ _AgsFxLv2AudioInputData#input. = (float *) g_malloccxx . . $ g_malloc(bfcfa4d6b7f7ef64).(input_port_count * buffer_size * sizeof(float));
1003 }else{
1004 g_freecxx . . $ g_free(5d22bdacc48458e8).(input_data->inputcxx . . $ _AgsFxLv2AudioInputData#input.);
1005
1006 input_data->inputcxx . . $ _AgsFxLv2AudioInputData#input. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1007
1008 input_data->input_sizecxx . . $ _AgsFxLv2AudioInputData#input_size. = 0;
1009 }
1010
1011 for(nth = 0; nth < output_port_count; nth++){
1012 ags_base_plugin_connect_portcxx . . $ ags_base_plugin_connect_port(972b1340e982144f).((AgsBasePlugincxx . . $ AgsBasePlugin# *) lv2_plugin,
1013 input_data->lv2_handlecxx . . $ _AgsFxLv2AudioInputData#lv2_handle.[0],
1014 output_port[nth],
1015 input_data->outputcxx . . $ _AgsFxLv2AudioInputData#output.);
1016 }
1017
1018 for(nth = 0; nth < input_port_count; nth++){
1019 ags_base_plugin_connect_portcxx . . $ ags_base_plugin_connect_port(972b1340e982144f).((AgsBasePlugincxx . . $ AgsBasePlugin# *) lv2_plugin,
1020 input_data->lv2_handlecxx . . $ _AgsFxLv2AudioInputData#lv2_handle.[0],
1021 input_port[nth],
1022 input_data->inputcxx . . $ _AgsFxLv2AudioInputData#input.);
1023 }
1024
1025 if(has_midiin_event_port){
1026 input_data->midiin_event_portcxx . . $ _AgsFxLv2AudioInputData#midiin_event_port. = ags_lv2_plugin_event_buffer_alloccxx . . $ ags_lv2_plugin_event_buffer_alloc(fb0a86f475fbe6bc).(AGS_FX_LV2_AUDIO_DEFAULT_MIDI_LENGHTcxx . . $ `ags/audio/fx/ags_fx_lv2_audio.h:63:9`!);
1027
1028 ags_base_plugin_connect_portcxx . . $ ags_base_plugin_connect_port(972b1340e982144f).((AgsBasePlugincxx . . $ AgsBasePlugin# *) lv2_plugin,
1029 input_data->lv2_handlecxx . . $ _AgsFxLv2AudioInputData#lv2_handle.[0],
1030 midiin_event_port,
1031 input_data->midiin_event_portcxx . . $ _AgsFxLv2AudioInputData#midiin_event_port.);
1032 }
1033
1034 if(has_midiin_atom_port){
1035 input_data->midiin_atom_portcxx . . $ _AgsFxLv2AudioInputData#midiin_atom_port. = ags_lv2_plugin_alloc_atom_sequencecxx . . $ ags_lv2_plugin_alloc_atom_sequence(52408c21a1e21ff7).(AGS_FX_LV2_AUDIO_DEFAULT_MIDI_LENGHTcxx . . $ `ags/audio/fx/ags_fx_lv2_audio.h:63:9`!);
1036
1037 ags_base_plugin_connect_portcxx . . $ ags_base_plugin_connect_port(972b1340e982144f).((AgsBasePlugincxx . . $ AgsBasePlugin# *) lv2_plugin,
1038 input_data->lv2_handlecxx . . $ _AgsFxLv2AudioInputData#lv2_handle.[0],
1039 midiin_atom_port,
1040 input_data->midiin_atom_portcxx . . $ _AgsFxLv2AudioInputData#midiin_atom_port.);
1041 }
1042
1043 ags_base_plugin_activatecxx . . $ ags_base_plugin_activate(a9e8d68303f3b02).((AgsBasePlugincxx . . $ AgsBasePlugin# *) lv2_plugin,
1044 input_data->lv2_handlecxx . . $ _AgsFxLv2AudioInputData#lv2_handle.[0]);
1045 }
1046 }
1047 }
1048
1049 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(fx_lv2_channel_mutex);
1050 }else{
1051 /* get control port count */
1052 plugin_port = start_plugin_port;
1053
1054 output_port = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1055 input_port = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1056
1057 output_port_count = 0;
1058 input_port_count = 0;
1059
1060 control_port_count = 0;
1061
1062 while(plugin_port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
1063 if(ags_plugin_port_test_flagscxx . . $ ags_plugin_port_test_flags(af71b240cf69617a).(plugin_port->datacxx . . $ _GList#data.,
1064 AGS_PLUGIN_PORT_CONTROLcxx . . $ AGS_PLUGIN_PORT_CONTROL.)){
1065 control_port_count++;
1066 }else if(ags_plugin_port_test_flagscxx . . $ ags_plugin_port_test_flags(af71b240cf69617a).(plugin_port->datacxx . . $ _GList#data.,
1067 AGS_PLUGIN_PORT_AUDIOcxx . . $ AGS_PLUGIN_PORT_AUDIO.)){
1068 guintcxx . . $ guint# port_index;
1069
1070 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(plugin_port->datacxx . . $ _GList#data.,
1071 "port-index", &port_index,
1072 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1073
1074 if(ags_plugin_port_test_flagscxx . . $ ags_plugin_port_test_flags(af71b240cf69617a).(plugin_port->datacxx . . $ _GList#data.,
1075 AGS_PLUGIN_PORT_INPUTcxx . . $ AGS_PLUGIN_PORT_INPUT.)){
1076 if(input_port == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
1077 input_port = (guintcxx . . $ guint# *) g_malloccxx . . $ g_malloc(bfcfa4d6b7f7ef64).(sizeof(guintcxx . . $ guint#));
1078 }else{
1079 input_port = (guintcxx . . $ guint# *) g_realloccxx . . $ g_realloc(417ab160f6baadc6).(input_port,
1080 (input_port_count + 1) * sizeof(guintcxx . . $ guint#));
1081 }
1082
1083 input_port[input_port_count] = port_index;
1084 input_port_count++;
1085 }else if(ags_plugin_port_test_flagscxx . . $ ags_plugin_port_test_flags(af71b240cf69617a).(plugin_port->datacxx . . $ _GList#data.,
1086 AGS_PLUGIN_PORT_OUTPUTcxx . . $ AGS_PLUGIN_PORT_OUTPUT.)){
1087 if(output_port == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
1088 output_port = (guintcxx . . $ guint# *) g_malloccxx . . $ g_malloc(bfcfa4d6b7f7ef64).(sizeof(guintcxx . . $ guint#));
1089 }else{
1090 output_port = (guintcxx . . $ guint# *) g_realloccxx . . $ g_realloc(417ab160f6baadc6).(output_port,
1091 (output_port_count + 1) * sizeof(guintcxx . . $ guint#));
1092 }
1093
1094 output_port[output_port_count] = port_index;
1095 output_port_count++;
1096 }
1097 }
1098
1099 plugin_port = plugin_port->nextcxx . . $ _GList#next.;
1100 }
1101
1102 /* */
1103 if(control_port_count > 0){
1104 lv2_port = (AgsPortcxx . . $ AgsPort# **) g_malloccxx . . $ g_malloc(bfcfa4d6b7f7ef64).((control_port_count + 1) * sizeof(AgsPortcxx . . $ AgsPort# *));
1105
1106 plugin_port = start_plugin_port;
1107
1108 for(nth = 0; nth < control_port_count && plugin_port != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;){
1109 if(ags_plugin_port_test_flagscxx . . $ ags_plugin_port_test_flags(af71b240cf69617a).(plugin_port->datacxx . . $ _GList#data.,
1110 AGS_PLUGIN_PORT_CONTROLcxx . . $ AGS_PLUGIN_PORT_CONTROL.)){
1111 AgsPluginPortcxx . . $ AgsPluginPort# *current_plugin_port;
1112
1113 gcharcxx . . $ gchar# *plugin_name;
1114 gcharcxx . . $ gchar# *specifier;
1115 gcharcxx . . $ gchar# *control_port;
1116
1117 guintcxx . . $ guint# port_index;
1118
1119 GValuecxx . . $ GValue# default_value = {0,};
1120
1121 GRecMutexcxx . . $ GRecMutex# *plugin_port_mutex;
1122
1123 current_plugin_port = AGS_PLUGIN_PORTcxx . . $ `ags/plugin/ags_plugin_port.h:31:9`!(plugin_port->data);
1124
1125 /* get plugin port mutex */
1126 plugin_port_mutex = AGS_PLUGIN_PORT_GET_OBJ_MUTEXcxx . . $ `ags/plugin/ags_plugin_port.h:37:9`!(current_plugin_port);
1127
1128 /* plugin name, specifier and control port */
1129 plugin_name = g_strdup_printfcxx . . $ g_strdup_printf(a849077ff1b8d812).("lv2-<%s>", lv2_plugin->uricxx . . $ _AgsLv2Plugin#uri.);
1130
1131 specifier = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1132
1133 port_index = 0;
1134
1135 g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(current_plugin_port,
1136 "port-name", &specifier,
1137 "port-index", &port_index,
1138 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1139
1140 control_port = g_strdup_printfcxx . . $ g_strdup_printf(a849077ff1b8d812).("%u/%u",
1141 nth,
1142 control_port_count);
1143
1144 /* default value */
1145 g_value_initcxx . . $ g_value_init(afc049a76445919c).(&default_value,
1146 G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!);
1147
1148 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(plugin_port_mutex);
1149
1150 g_value_copycxx . . $ g_value_copy(76788ea28990d685).(current_plugin_port->default_valuecxx . . $ _AgsPluginPort#default_value.,
1151 &default_value);
1152
1153 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(plugin_port_mutex);
1154
1155 /* lv2 port */
1156 lv2_port[nth] = g_object_newcxx . . $ g_object_new(8485fe61b4be4c78).(AGS_TYPE_PORTcxx . . $ `ags/audio/ags_port.h:32:9`!,
1157 "plugin-name", plugin_name,
1158 "specifier", specifier,
1159 "control-port", control_port,
1160 "port-value-is-pointer", FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!,
1161 "port-value-type", G_TYPE_FLOATcxx . . $ `<external>/9567554376676449156/gtype.h:153:9`!,
1162 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1163
1164 if(ags_plugin_port_test_flagscxx . . $ ags_plugin_port_test_flags(af71b240cf69617a).(current_plugin_port,
1165 AGS_PLUGIN_PORT_OUTPUTcxx . . $ AGS_PLUGIN_PORT_OUTPUT.)){
1166 ags_port_set_flagscxx . . $ ags_port_set_flags(84830934707138c7).(lv2_port[nth], AGS_PORT_IS_OUTPUTcxx . . $ AGS_PORT_IS_OUTPUT.);
1167
1168 ags_recall_set_flagscxx . . $ ags_recall_set_flags(ca04eff694fc4130).((AgsRecallcxx . . $ AgsRecall# *) fx_lv2_channel,
1169 AGS_RECALL_HAS_OUTPUT_PORTcxx . . $ AGS_RECALL_HAS_OUTPUT_PORT.);
1170
1171 }else{
1172 if(!ags_plugin_port_test_flagscxx . . $ ags_plugin_port_test_flags(af71b240cf69617a).(current_plugin_port,
1173 AGS_PLUGIN_PORT_INTEGERcxx . . $ AGS_PLUGIN_PORT_INTEGER.) &&
1174 !ags_plugin_port_test_flagscxx . . $ ags_plugin_port_test_flags(af71b240cf69617a).(current_plugin_port,
1175 AGS_PLUGIN_PORT_TOGGLEDcxx . . $ AGS_PLUGIN_PORT_TOGGLED.)){
1176 ags_port_set_flagscxx . . $ ags_port_set_flags(84830934707138c7).(lv2_port[nth], AGS_PORT_INFINITE_RANGEcxx . . $ AGS_PORT_INFINITE_RANGE.);
1177 }
1178 }
1179
1180 g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d).(lv2_port[nth],
1181 "plugin-port", current_plugin_port,
1182 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1183
1184 ags_port_util_load_lv2_conversioncxx . . $ ags_port_util_load_lv2_conversion(525ddcf43f9eb672).(lv2_port[nth],
1185 current_plugin_port);
1186
1187 ags_port_safe_write_rawcxx . . $ ags_port_safe_write_raw(3f8c7b03f2be4a83).(lv2_port[nth],
1188 &default_value);
1189
1190 ags_recall_add_portcxx . . $ ags_recall_add_port(6ead69b5866ab1f9).((AgsRecallcxx . . $ AgsRecall# *) fx_lv2_channel,
1191 lv2_port[nth]);
1192
1193 /* connect port */
1194 for(i = 0; i < AGS_SOUND_SCOPE_LASTcxx . . $ AGS_SOUND_SCOPE_LAST.; i++){
1195 AgsFxLv2ChannelInputDatacxx . . $ AgsFxLv2ChannelInputData# *input_data;
1196
1197 input_data = fx_lv2_channel->input_datacxx . . $ _AgsFxLv2Channel#input_data.[i];
1198
1199 if(input_data->lv2_handlecxx . . $ _AgsFxLv2ChannelInputData#lv2_handle. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
1200 input_data->lv2_handlecxx . . $ _AgsFxLv2ChannelInputData#lv2_handle. = ags_base_plugin_instantiatecxx . . $ ags_base_plugin_instantiate(3b22e154c7beea21).((AgsBasePlugincxx . . $ AgsBasePlugin# *) lv2_plugin,
1201 samplerate, buffer_size);
1202 }
1203
1204 ags_base_plugin_connect_portcxx . . $ ags_base_plugin_connect_port(972b1340e982144f).((AgsBasePlugincxx . . $ AgsBasePlugin# *) lv2_plugin,
1205 input_data->lv2_handlecxx . . $ _AgsFxLv2ChannelInputData#lv2_handle.[0],
1206 port_index,
1207 &(lv2_port[nth]->port_valuecxx . . $ _AgsPort#port_value..ags_port_floatcxx . . $ _AgsPortValue#ags_port_float.));
1208 }
1209
1210 g_freecxx . . $ g_free(5d22bdacc48458e8).(plugin_name);
1211 g_freecxx . . $ g_free(5d22bdacc48458e8).(specifier);
1212 g_freecxx . . $ g_free(5d22bdacc48458e8).(control_port);
1213
1214 g_value_unsetcxx . . $ g_value_unset(15c06aff79890746).(&default_value);
1215
1216 nth++;
1217 }
1218
1219 plugin_port = plugin_port->nextcxx . . $ _GList#next.;
1220 }
1221
1222 lv2_port[nth] = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1223 }
1224
1225 /* set LV2 output */
1226 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(fx_lv2_channel_mutex);
1227
1228 for(i = 0; i < AGS_SOUND_SCOPE_LASTcxx . . $ AGS_SOUND_SCOPE_LAST.; i++){
1229 AgsFxLv2ChannelInputDatacxx . . $ AgsFxLv2ChannelInputData# *input_data;
1230
1231 input_data = fx_lv2_channel->input_datacxx . . $ _AgsFxLv2Channel#input_data.[i];
1232
1233 if(input_data->outputcxx . . $ _AgsFxLv2ChannelInputData#output. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
1234 output_port_count > 0 &&
1235 buffer_size > 0){
1236 input_data->outputcxx . . $ _AgsFxLv2ChannelInputData#output. = (float *) g_malloccxx . . $ g_malloc(bfcfa4d6b7f7ef64).(output_port_count * buffer_size * sizeof(float));
1237
1238 input_data->output_sizecxx . . $ _AgsFxLv2ChannelInputData#output_size. = buffer_size;
1239 }else{
1240 g_freecxx . . $ g_free(5d22bdacc48458e8).(input_data->outputcxx . . $ _AgsFxLv2ChannelInputData#output.);
1241
1242 input_data->outputcxx . . $ _AgsFxLv2ChannelInputData#output. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1243
1244 input_data->output_sizecxx . . $ _AgsFxLv2ChannelInputData#output_size. = 0;
1245 }
1246
1247 if(input_data->inputcxx . . $ _AgsFxLv2ChannelInputData#input. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! &&
1248 input_port_count > 0 &&
1249 buffer_size > 0){
1250 input_data->inputcxx . . $ _AgsFxLv2ChannelInputData#input. = (float *) g_malloccxx . . $ g_malloc(bfcfa4d6b7f7ef64).(input_port_count * buffer_size * sizeof(float));
1251
1252 input_data->input_sizecxx . . $ _AgsFxLv2ChannelInputData#input_size. = buffer_size;
1253 }else{
1254 g_freecxx . . $ g_free(5d22bdacc48458e8).(input_data->inputcxx . . $ _AgsFxLv2ChannelInputData#input.);
1255
1256 input_data->inputcxx . . $ _AgsFxLv2ChannelInputData#input. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
1257
1258 input_data->input_sizecxx . . $ _AgsFxLv2ChannelInputData#input_size. = 0;
1259 }
1260
1261 for(nth = 0; nth < output_port_count; nth++){
1262 ags_base_plugin_connect_portcxx . . $ ags_base_plugin_connect_port(972b1340e982144f).((AgsBasePlugincxx . . $ AgsBasePlugin# *) lv2_plugin,
1263 input_data->lv2_handlecxx . . $ _AgsFxLv2ChannelInputData#lv2_handle.[0],
1264 output_port[nth],
1265 input_data->outputcxx . . $ _AgsFxLv2ChannelInputData#output.);
1266 }
1267
1268 for(nth = 0; nth < input_port_count; nth++){
1269 ags_base_plugin_connect_portcxx . . $ ags_base_plugin_connect_port(972b1340e982144f).((AgsBasePlugincxx . . $ AgsBasePlugin# *) lv2_plugin,
1270 input_data->lv2_handlecxx . . $ _AgsFxLv2ChannelInputData#lv2_handle.[0],
1271 input_port[nth],
1272 input_data->inputcxx . . $ _AgsFxLv2ChannelInputData#input.);
1273 }
1274
1275 ags_base_plugin_activatecxx . . $ ags_base_plugin_activate(a9e8d68303f3b02).((AgsBasePlugincxx . . $ AgsBasePlugin# *) lv2_plugin,
1276 input_data->lv2_handlecxx . . $ _AgsFxLv2ChannelInputData#lv2_handle.[0]);
1277 }
1278
1279 fx_lv2_channel->output_port_countcxx . . $ _AgsFxLv2Channel#output_port_count. = output_port_count;
1280 fx_lv2_channel->output_portcxx . . $ _AgsFxLv2Channel#output_port. = output_port;
1281
1282 fx_lv2_channel->input_port_countcxx . . $ _AgsFxLv2Channel#input_port_count. = input_port_count;
1283 fx_lv2_channel->input_portcxx . . $ _AgsFxLv2Channel#input_port. = input_port;
1284
1285 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(fx_lv2_channel_mutex);
1286 }
1287
1288 /* set LV2 port */
1289 g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(fx_lv2_channel_mutex);
1290
1291 fx_lv2_channel->lv2_portcxx . . $ _AgsFxLv2Channel#lv2_port. = lv2_port;
1292
1293 g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(fx_lv2_channel_mutex);
1294
1295 ags_recall_set_state_flagscxx . . $ ags_recall_set_state_flags(5cb9ac6396b158ec).(AGS_RECALLcxx . . $ `ags/audio/ags_recall.h:41:9`!(fx_lv2_channel),
1296 AGS_SOUND_STATE_PORT_LOADEDcxx . . $ AGS_SOUND_STATE_PORT_LOADED.);
1297
1298 /* unref */
1299 if(fx_lv2_audio != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!){
1300 g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(fx_lv2_audio);
1301 }
1302
1303 g_list_free_fullcxx . . $ g_list_free_full(5ba5b0738c7ed753).(start_plugin_port,
1304 (GDestroyNotifycxx . . $ GDestroyNotify#) g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).);
1305 }
1306
1307 /**
1308 * ags_fx_lv2_channel_new:
1309 * @channel: the #AgsChannel
1310 *
1311 * Create a new instance of #AgsFxLv2Channel
1312 *
1313 * Returns: the new #AgsFxLv2Channel
1314 *
1315 * Since: 3.3.0
1316 */
1317 AgsFxLv2Channelcxx . . $ AgsFxLv2Channel#*
1318 ags_fx_lv2_channel_newcxx . . $ ags_fx_lv2_channel_new(92ab76a508f287c5).(AgsChannelcxx . . $ AgsChannel# *channel)
1319 {
1320 AgsFxLv2Channelcxx . . $ AgsFxLv2Channel# *fx_lv2_channel;
1321
1322 fx_lv2_channel = (AgsFxLv2Channelcxx . . $ AgsFxLv2Channel# *) g_object_newcxx . . $ g_object_new(8485fe61b4be4c78).(AGS_TYPE_FX_LV2_CHANNELcxx . . $ `ags/audio/fx/ags_fx_lv2_channel.h:43:9`!,
1323 "source", channel,
1324 NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!);
1325
1326 return(fx_lv2_channel);
1327 }