| 1 | /* GSequencer - Advanced GTK Sequencer |
| 2 | * Copyright (C) 2005-2021 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_sf2_synth_channel.h>cxx . . $ `<file>/ags/audio/fx/ags_fx_sf2_synth_channel.h`/ |
| 21 | |
| 22 | #include <ags/plugin/ags_plugin_port.h>cxx . . $ `<file>/ags/plugin/ags_plugin_port.h`/ |
| 23 | |
| 24 | #include <ags/i18n.h>cxx . . $ `<file>/ags/i18n.h`/ |
| 25 | |
| 26 | void ags_fx_sf2_synth_channel_class_initcxx . . $ ags_fx_sf2_synth_channel_class_init(7c5ed9f992249a0a).(AgsFxSF2SynthChannelClasscxx . . $ AgsFxSF2SynthChannelClass# *fx_sf2_synth_channel); |
| 27 | void ags_fx_sf2_synth_channel_initcxx . . $ ags_fx_sf2_synth_channel_init(6409cf94df843722).(AgsFxSF2SynthChannelcxx . . $ AgsFxSF2SynthChannel# *fx_sf2_synth_channel); |
| 28 | void ags_fx_sf2_synth_channel_disposecxx . . $ ags_fx_sf2_synth_channel_dispose(6087475fa43034d3).(GObjectcxx . . $ GObject# *gobject); |
| 29 | void ags_fx_sf2_synth_channel_finalizecxx . . $ ags_fx_sf2_synth_channel_finalize(6087475fa43034d3).(GObjectcxx . . $ GObject# *gobject); |
| 30 | |
| 31 | /** |
| 32 | * SECTION:ags_fx_sf2_synth_channel |
| 33 | * @short_description: fx Soundfont2 synth channel |
| 34 | * @title: AgsFxSF2SynthChannel |
| 35 | * @section_id: |
| 36 | * @include: ags/audio/fx/ags_fx_sf2_synth_channel.h |
| 37 | * |
| 38 | * The #AgsFxSF2SynthChannel class provides ports to the effect processor. |
| 39 | */ |
| 40 | |
| 41 | static gpointercxx . . $ gpointer# ags_fx_sf2_synth_channel_parent_classcxx . . $ ags_fx_sf2_synth_channel_parent_class. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 42 | |
| 43 | const gcharcxx . . $ gchar# *ags_fx_sf2_synth_channel_plugin_namecxx . . $ ags_fx_sf2_synth_channel_plugin_name. = "ags-fx-sf2-synth"; |
| 44 | |
| 45 | const gcharcxx . . $ gchar#* ags_fx_sf2_synth_channel_specifiercxx . . $ ags_fx_sf2_synth_channel_specifier.[] = { |
| 46 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 47 | }; |
| 48 | |
| 49 | const gcharcxx . . $ gchar#* ags_fx_sf2_synth_channel_control_portcxx . . $ ags_fx_sf2_synth_channel_control_port.[] = { |
| 50 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, |
| 51 | }; |
| 52 | |
| 53 | GTypecxx . . $ GType# |
| 54 | ags_fx_sf2_synth_channel_get_typecxx . . $ ags_fx_sf2_synth_channel_get_type(7b3bcd0168edf51f).() |
| 55 | { |
| 56 | static gsizecxx . . $ gsize# g_define_type_id__static = 0; |
| 57 | |
| 58 | if(g_once_init_entercxx . . $ `<external>/457917468643292165/gthread.h:270:10`!(&g_define_type_id__static)){ |
| 59 | GTypecxx . . $ GType# ags_type_fx_sf2_synth_channel = 0; |
| 60 | |
| 61 | static const GTypeInfocxx . . $ GTypeInfo# ags_fx_sf2_synth_channel_info = { |
| 62 | sizeof (AgsFxSF2SynthChannelClasscxx . . $ AgsFxSF2SynthChannelClass#), |
| 63 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, /* base_init */ |
| 64 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, /* base_finalize */ |
| 65 | (GClassInitFunccxx . . $ GClassInitFunc#) ags_fx_sf2_synth_channel_class_initcxx . . $ ags_fx_sf2_synth_channel_class_init(7c5ed9f992249a0a)., |
| 66 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, /* class_finalize */ |
| 67 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, /* class_channel */ |
| 68 | sizeof (AgsFxSF2SynthChannelcxx . . $ AgsFxSF2SynthChannel#), |
| 69 | 0, /* n_preallocs */ |
| 70 | (GInstanceInitFunccxx . . $ GInstanceInitFunc#) ags_fx_sf2_synth_channel_initcxx . . $ ags_fx_sf2_synth_channel_init(6409cf94df843722)., |
| 71 | }; |
| 72 | |
| 73 | ags_type_fx_sf2_synth_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`!, |
| 74 | "AgsFxSF2SynthChannel", |
| 75 | &ags_fx_sf2_synth_channel_info, |
| 76 | 0); |
| 77 | |
| 78 | g_once_init_leavecxx . . $ `<external>/457917468643292165/gthread.h:277:10`!(&g_define_type_id__static, ags_type_fx_sf2_synth_channel); |
| 79 | } |
| 80 | |
| 81 | return(g_define_type_id__static); |
| 82 | } |
| 83 | |
| 84 | void |
| 85 | ags_fx_sf2_synth_channel_class_initcxx . . $ ags_fx_sf2_synth_channel_class_init(7c5ed9f992249a0a).(AgsFxSF2SynthChannelClasscxx . . $ AgsFxSF2SynthChannelClass# *fx_sf2_synth_channel) |
| 86 | { |
| 87 | GObjectClasscxx . . $ GObjectClass# *gobject; |
| 88 | |
| 89 | GParamSpeccxx . . $ GParamSpec# *param_spec; |
| 90 | |
| 91 | ags_fx_sf2_synth_channel_parent_classcxx . . $ ags_fx_sf2_synth_channel_parent_class. = g_type_class_peek_parentcxx . . $ g_type_class_peek_parent(9f162e79bfc6c74).(fx_sf2_synth_channel); |
| 92 | |
| 93 | /* GObjectClass */ |
| 94 | gobject = (GObjectClasscxx . . $ GObjectClass# *) fx_sf2_synth_channel; |
| 95 | |
| 96 | gobject->disposecxx . . $ _GObjectClass#dispose. = ags_fx_sf2_synth_channel_disposecxx . . $ ags_fx_sf2_synth_channel_dispose(6087475fa43034d3).; |
| 97 | gobject->finalizecxx . . $ _GObjectClass#finalize. = ags_fx_sf2_synth_channel_finalizecxx . . $ ags_fx_sf2_synth_channel_finalize(6087475fa43034d3).; |
| 98 | |
| 99 | /* properties */ |
| 100 | } |
| 101 | |
| 102 | void |
| 103 | ags_fx_sf2_synth_channel_initcxx . . $ ags_fx_sf2_synth_channel_init(6409cf94df843722).(AgsFxSF2SynthChannelcxx . . $ AgsFxSF2SynthChannel# *fx_sf2_synth_channel) |
| 104 | { |
| 105 | AGS_RECALLcxx . . $ `ags/audio/ags_recall.h:41:9`!(fx_sf2_synth_channel)->namecxx . . $ _AgsRecall#name. = "ags-fx-sf2-synth"; |
| 106 | AGS_RECALLcxx . . $ `ags/audio/ags_recall.h:41:9`!(fx_sf2_synth_channel)->versioncxx . . $ _AgsRecall#version. = AGS_RECALL_DEFAULT_VERSIONcxx . . $ `ags/audio/ags_recall.h:137:9`!; |
| 107 | AGS_RECALLcxx . . $ `ags/audio/ags_recall.h:41:9`!(fx_sf2_synth_channel)->build_idcxx . . $ _AgsRecall#build_id. = AGS_RECALL_DEFAULT_BUILD_IDcxx . . $ `ags/audio/ags_recall.h:138:9`!; |
| 108 | AGS_RECALLcxx . . $ `ags/audio/ags_recall.h:41:9`!(fx_sf2_synth_channel)->xml_typecxx . . $ _AgsRecall#xml_type. = "ags-fx-sf2-synth-channel"; |
| 109 | } |
| 110 | |
| 111 | void |
| 112 | ags_fx_sf2_synth_channel_disposecxx . . $ ags_fx_sf2_synth_channel_dispose(6087475fa43034d3).(GObjectcxx . . $ GObject# *gobject) |
| 113 | { |
| 114 | AgsFxSF2SynthChannelcxx . . $ AgsFxSF2SynthChannel# *fx_sf2_synth_channel; |
| 115 | |
| 116 | fx_sf2_synth_channel = AGS_FX_SF2_SYNTH_CHANNELcxx . . $ `ags/audio/fx/ags_fx_sf2_synth_channel.h:35:9`!(gobject); |
| 117 | |
| 118 | /* call parent */ |
| 119 | G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`!(ags_fx_sf2_synth_channel_parent_class)->disposecxx . . $ _GObjectClass#dispose.(gobject); |
| 120 | } |
| 121 | |
| 122 | void |
| 123 | ags_fx_sf2_synth_channel_finalizecxx . . $ ags_fx_sf2_synth_channel_finalize(6087475fa43034d3).(GObjectcxx . . $ GObject# *gobject) |
| 124 | { |
| 125 | AgsFxSF2SynthChannelcxx . . $ AgsFxSF2SynthChannel# *fx_sf2_synth_channel; |
| 126 | |
| 127 | fx_sf2_synth_channel = AGS_FX_SF2_SYNTH_CHANNELcxx . . $ `ags/audio/fx/ags_fx_sf2_synth_channel.h:35:9`!(gobject); |
| 128 | |
| 129 | /* call parent */ |
| 130 | G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`!(ags_fx_sf2_synth_channel_parent_class)->finalizecxx . . $ _GObjectClass#finalize.(gobject); |
| 131 | } |
| 132 | |
| 133 | /** |
| 134 | * ags_fx_sf2_synth_channel_new: |
| 135 | * @channel: the #AgsChannel |
| 136 | * |
| 137 | * Create a new instance of #AgsFxSF2SynthChannel |
| 138 | * |
| 139 | * Returns: the new #AgsFxSF2SynthChannel |
| 140 | * |
| 141 | * Since: 3.16.0 |
| 142 | */ |
| 143 | AgsFxSF2SynthChannelcxx . . $ AgsFxSF2SynthChannel#* |
| 144 | ags_fx_sf2_synth_channel_newcxx . . $ ags_fx_sf2_synth_channel_new(c87fb4c10ab2fb11).(AgsChannelcxx . . $ AgsChannel# *channel) |
| 145 | { |
| 146 | AgsFxSF2SynthChannelcxx . . $ AgsFxSF2SynthChannel# *fx_sf2_synth_channel; |
| 147 | |
| 148 | fx_sf2_synth_channel = (AgsFxSF2SynthChannelcxx . . $ AgsFxSF2SynthChannel# *) g_object_newcxx . . $ g_object_new(8485fe61b4be4c78).(AGS_TYPE_FX_SF2_SYNTH_CHANNELcxx . . $ `ags/audio/fx/ags_fx_sf2_synth_channel.h:34:9`!, |
| 149 | "source", channel, |
| 150 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!); |
| 151 | |
| 152 | return(fx_sf2_synth_channel); |
| 153 | } |