| 1 | /* GSequencer - Advanced GTK Sequencer |
| 2 | * Copyright (C) 2005-2022 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/file/ags_sfz_region.h>cxx . . $ `<file>/ags/audio/file/ags_sfz_region.h`/ |
| 21 | |
| 22 | #include <ags/audio/file/ags_sfz_group.h>cxx . . $ `<file>/ags/audio/file/ags_sfz_group.h`/ |
| 23 | #include <ags/audio/file/ags_sfz_sample.h>cxx . . $ `<file>/ags/audio/file/ags_sfz_sample.h`/ |
| 24 | |
| 25 | #include <stdlib.h> |
| 26 | |
| 27 | #include <ags/i18n.h>cxx . . $ `<file>/ags/i18n.h`/ |
| 28 | |
| 29 | static void ags_sfz_region_class_initcxx . . $ ags_sfz_region_class_init(294c6301f0245bd6).(AgsSFZRegionClasscxx . . $ AgsSFZRegionClass# *sfz_region); |
| 30 | static void ags_sfz_region_connectable_interface_initcxx . . $ ags_sfz_region_connectable_interface_init(ded8caecc234b61b).(AgsConnectableInterfacecxx . . $ AgsConnectableInterface# *connectable); |
| 31 | static void ags_sfz_region_initcxx . . $ ags_sfz_region_init(72147328303ef740).(AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region); |
| 32 | static void ags_sfz_region_set_propertycxx . . $ ags_sfz_region_set_property(d7c4bb29f36c0dc4).(GObjectcxx . . $ GObject# *gobject, |
| 33 | guintcxx . . $ guint# prop_id, |
| 34 | const GValuecxx . . $ GValue# *value, |
| 35 | GParamSpeccxx . . $ GParamSpec# *param_spec); |
| 36 | static void ags_sfz_region_get_propertycxx . . $ ags_sfz_region_get_property(cee2c52f22407c66).(GObjectcxx . . $ GObject# *gobject, |
| 37 | guintcxx . . $ guint# prop_id, |
| 38 | GValuecxx . . $ GValue# *value, |
| 39 | GParamSpeccxx . . $ GParamSpec# *param_spec); |
| 40 | static void ags_sfz_region_disposecxx . . $ ags_sfz_region_dispose(6087475fa43034d3).(GObjectcxx . . $ GObject# *gobject); |
| 41 | static void ags_sfz_region_finalizecxx . . $ ags_sfz_region_finalize(6087475fa43034d3).(GObjectcxx . . $ GObject# *gobject); |
| 42 | |
| 43 | static AgsUUIDcxx . . $ AgsUUID#* ags_sfz_region_get_uuidcxx . . $ ags_sfz_region_get_uuid(99a437e5c71ec353).(AgsConnectablecxx . . $ AgsConnectable# *connectable); |
| 44 | static gbooleancxx . . $ gboolean# ags_sfz_region_has_resourcecxx . . $ ags_sfz_region_has_resource(35ce0433daa64ed5).(AgsConnectablecxx . . $ AgsConnectable# *connectable); |
| 45 | static gbooleancxx . . $ gboolean# ags_sfz_region_is_readycxx . . $ ags_sfz_region_is_ready(35ce0433daa64ed5).(AgsConnectablecxx . . $ AgsConnectable# *connectable); |
| 46 | static void ags_sfz_region_add_to_registrycxx . . $ ags_sfz_region_add_to_registry(b3452eb36507abb3).(AgsConnectablecxx . . $ AgsConnectable# *connectable); |
| 47 | static void ags_sfz_region_remove_from_registrycxx . . $ ags_sfz_region_remove_from_registry(b3452eb36507abb3).(AgsConnectablecxx . . $ AgsConnectable# *connectable); |
| 48 | static xmlNodecxx . . $ xmlNode#* ags_sfz_region_list_resourcecxx . . $ ags_sfz_region_list_resource(671df6f11ff229f8).(AgsConnectablecxx . . $ AgsConnectable# *connectable); |
| 49 | static xmlNodecxx . . $ xmlNode#* ags_sfz_region_xml_composecxx . . $ ags_sfz_region_xml_compose(671df6f11ff229f8).(AgsConnectablecxx . . $ AgsConnectable# *connectable); |
| 50 | static void ags_sfz_region_xml_parsecxx . . $ ags_sfz_region_xml_parse(7d7142ae9aeffd2b).(AgsConnectablecxx . . $ AgsConnectable# *connectable, |
| 51 | xmlNodecxx . . $ xmlNode# *node); |
| 52 | static gbooleancxx . . $ gboolean# ags_sfz_region_is_connectedcxx . . $ ags_sfz_region_is_connected(35ce0433daa64ed5).(AgsConnectablecxx . . $ AgsConnectable# *connectable); |
| 53 | static void ags_sfz_region_connectcxx . . $ ags_sfz_region_connect(b3452eb36507abb3).(AgsConnectablecxx . . $ AgsConnectable# *connectable); |
| 54 | static void ags_sfz_region_disconnectcxx . . $ ags_sfz_region_disconnect(b3452eb36507abb3).(AgsConnectablecxx . . $ AgsConnectable# *connectable); |
| 55 | |
| 56 | /** |
| 57 | * SECTION:ags_sfz_region |
| 58 | * @short_description: interfacing SFZ regions |
| 59 | * @title: AgsSFZRegion |
| 60 | * @section_id: |
| 61 | * @include: ags/audio/file/ags_sfz_region.h |
| 62 | * |
| 63 | * #AgsSFZRegion is the base object to ineract with SFZ regions. |
| 64 | */ |
| 65 | |
| 66 | enumcxx . . $ $anonymous_type_cebd90e91234418c_0#{ |
| 67 | PROP_0cxx . . $ PROP_0., |
| 68 | PROP_NTH_REGIONcxx . . $ PROP_NTH_REGION., |
| 69 | PROP_GROUPcxx . . $ PROP_GROUP., |
| 70 | PROP_SAMPLEcxx . . $ PROP_SAMPLE., |
| 71 | }; |
| 72 | |
| 73 | static gpointercxx . . $ gpointer# ags_sfz_region_parent_classcxx . . $ ags_sfz_region_parent_class. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 74 | |
| 75 | GTypecxx . . $ GType# |
| 76 | ags_sfz_region_get_typecxx . . $ ags_sfz_region_get_type(7b3bcd0168edf51f).() |
| 77 | { |
| 78 | static gsizecxx . . $ gsize# g_define_type_id__static = 0; |
| 79 | |
| 80 | if(g_once_init_entercxx . . $ `<external>/457917468643292165/gthread.h:270:10`!(&g_define_type_id__static)){ |
| 81 | GTypecxx . . $ GType# ags_type_sfz_region = 0; |
| 82 | |
| 83 | static const GTypeInfocxx . . $ GTypeInfo# ags_sfz_region_info = { |
| 84 | sizeof(AgsSFZRegionClasscxx . . $ AgsSFZRegionClass#), |
| 85 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, /* base_init */ |
| 86 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, /* base_finalize */ |
| 87 | (GClassInitFunccxx . . $ GClassInitFunc#) ags_sfz_region_class_initcxx . . $ ags_sfz_region_class_init(294c6301f0245bd6)., |
| 88 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, /* class_finalize */ |
| 89 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, /* class_data */ |
| 90 | sizeof(AgsSFZRegioncxx . . $ AgsSFZRegion#), |
| 91 | 0, /* n_preallocs */ |
| 92 | (GInstanceInitFunccxx . . $ GInstanceInitFunc#) ags_sfz_region_initcxx . . $ ags_sfz_region_init(72147328303ef740)., |
| 93 | }; |
| 94 | |
| 95 | static const GInterfaceInfocxx . . $ GInterfaceInfo# ags_connectable_interface_info = { |
| 96 | (GInterfaceInitFunccxx . . $ GInterfaceInitFunc#) ags_sfz_region_connectable_interface_initcxx . . $ ags_sfz_region_connectable_interface_init(ded8caecc234b61b)., |
| 97 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, /* interface_finalize */ |
| 98 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, /* interface_data */ |
| 99 | }; |
| 100 | |
| 101 | ags_type_sfz_region = g_type_register_staticcxx . . $ g_type_register_static(805a40cfa272e950).(G_TYPE_OBJECTcxx . . $ `<external>/9567554376676449156/gtype.h:189:9`!, |
| 102 | "AgsSFZRegion", |
| 103 | &ags_sfz_region_info, |
| 104 | 0); |
| 105 | |
| 106 | g_type_add_interface_staticcxx . . $ g_type_add_interface_static(242860dc27e79bd1).(ags_type_sfz_region, |
| 107 | AGS_TYPE_CONNECTABLEcxx . . $ `ags/object/ags_connectable.h:32:9`!, |
| 108 | &ags_connectable_interface_info); |
| 109 | |
| 110 | g_once_init_leavecxx . . $ `<external>/457917468643292165/gthread.h:277:10`!(&g_define_type_id__static, ags_type_sfz_region); |
| 111 | } |
| 112 | |
| 113 | return(g_define_type_id__static); |
| 114 | } |
| 115 | |
| 116 | void |
| 117 | ags_sfz_region_class_initcxx . . $ ags_sfz_region_class_init(294c6301f0245bd6).(AgsSFZRegionClasscxx . . $ AgsSFZRegionClass# *sfz_region) |
| 118 | { |
| 119 | GObjectClasscxx . . $ GObjectClass# *gobject; |
| 120 | |
| 121 | GParamSpeccxx . . $ GParamSpec# *param_spec; |
| 122 | |
| 123 | ags_sfz_region_parent_classcxx . . $ ags_sfz_region_parent_class. = g_type_class_peek_parentcxx . . $ g_type_class_peek_parent(9f162e79bfc6c74).(sfz_region); |
| 124 | |
| 125 | gobject = (GObjectClasscxx . . $ GObjectClass# *) sfz_region; |
| 126 | |
| 127 | gobject->set_propertycxx . . $ _GObjectClass#set_property. = ags_sfz_region_set_propertycxx . . $ ags_sfz_region_set_property(d7c4bb29f36c0dc4).; |
| 128 | gobject->get_propertycxx . . $ _GObjectClass#get_property. = ags_sfz_region_get_propertycxx . . $ ags_sfz_region_get_property(cee2c52f22407c66).; |
| 129 | |
| 130 | gobject->disposecxx . . $ _GObjectClass#dispose. = ags_sfz_region_disposecxx . . $ ags_sfz_region_dispose(6087475fa43034d3).; |
| 131 | gobject->finalizecxx . . $ _GObjectClass#finalize. = ags_sfz_region_finalizecxx . . $ ags_sfz_region_finalize(6087475fa43034d3).; |
| 132 | |
| 133 | /* properties */ |
| 134 | /** |
| 135 | * AgsSFZRegion:nth-region: |
| 136 | * |
| 137 | * The nth region. |
| 138 | * |
| 139 | * Since: 3.0.0 |
| 140 | */ |
| 141 | param_spec = g_param_spec_intcxx . . $ g_param_spec_int(eedf0a930522f60e).("nth-region", |
| 142 | i18n_pspeccxx . . $ `ags/i18n.h:24:9`!("nth region"), |
| 143 | i18n_pspeccxx . . $ `ags/i18n.h:24:9`!("The nth region it belongs to"), |
| 144 | -1, |
| 145 | G_MAXINT32cxx . . $ `<external>/10787549987161854489/gtypes.h:97:9`!, |
| 146 | -1, |
| 147 | G_PARAM_READABLEcxx . . $ G_PARAM_READABLE. | G_PARAM_WRITABLEcxx . . $ G_PARAM_WRITABLE.); |
| 148 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26).(gobject, |
| 149 | PROP_NTH_REGIONcxx . . $ PROP_NTH_REGION., |
| 150 | param_spec); |
| 151 | |
| 152 | /** |
| 153 | * AgsSFZRegion:group: |
| 154 | * |
| 155 | * The group assigned with. |
| 156 | * |
| 157 | * Since: 3.0.0 |
| 158 | */ |
| 159 | param_spec = g_param_spec_objectcxx . . $ g_param_spec_object(faf99966f027a127).("group", |
| 160 | i18n_pspeccxx . . $ `ags/i18n.h:24:9`!("assigned group"), |
| 161 | i18n_pspeccxx . . $ `ags/i18n.h:24:9`!("The group it is assigned with"), |
| 162 | AGS_TYPE_SFZ_GROUPcxx . . $ `ags/audio/file/ags_sfz_group.h:30:9`!, |
| 163 | G_PARAM_READABLEcxx . . $ G_PARAM_READABLE. | G_PARAM_WRITABLEcxx . . $ G_PARAM_WRITABLE.); |
| 164 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26).(gobject, |
| 165 | PROP_GROUPcxx . . $ PROP_GROUP., |
| 166 | param_spec); |
| 167 | |
| 168 | /** |
| 169 | * AgsSFZRegion:sample: |
| 170 | * |
| 171 | * The sample assigned with. |
| 172 | * |
| 173 | * Since: 3.0.0 |
| 174 | */ |
| 175 | param_spec = g_param_spec_objectcxx . . $ g_param_spec_object(faf99966f027a127).("sample", |
| 176 | i18n_pspeccxx . . $ `ags/i18n.h:24:9`!("assigned sample"), |
| 177 | i18n_pspeccxx . . $ `ags/i18n.h:24:9`!("The sample it is assigned with"), |
| 178 | AGS_TYPE_SFZ_SAMPLEcxx . . $ `ags/audio/file/ags_sfz_sample.h:34:9`!, |
| 179 | G_PARAM_READABLEcxx . . $ G_PARAM_READABLE. | G_PARAM_WRITABLEcxx . . $ G_PARAM_WRITABLE.); |
| 180 | g_object_class_install_propertycxx . . $ g_object_class_install_property(9c80cb614dbe5a26).(gobject, |
| 181 | PROP_SAMPLEcxx . . $ PROP_SAMPLE., |
| 182 | param_spec); |
| 183 | } |
| 184 | |
| 185 | void |
| 186 | ags_sfz_region_connectable_interface_initcxx . . $ ags_sfz_region_connectable_interface_init(ded8caecc234b61b).(AgsConnectableInterfacecxx . . $ AgsConnectableInterface# *connectable) |
| 187 | { |
| 188 | connectable->get_uuidcxx . . $ _AgsConnectableInterface#get_uuid. = ags_sfz_region_get_uuidcxx . . $ ags_sfz_region_get_uuid(99a437e5c71ec353).; |
| 189 | connectable->has_resourcecxx . . $ _AgsConnectableInterface#has_resource. = ags_sfz_region_has_resourcecxx . . $ ags_sfz_region_has_resource(35ce0433daa64ed5).; |
| 190 | connectable->is_readycxx . . $ _AgsConnectableInterface#is_ready. = ags_sfz_region_is_readycxx . . $ ags_sfz_region_is_ready(35ce0433daa64ed5).; |
| 191 | |
| 192 | connectable->add_to_registrycxx . . $ _AgsConnectableInterface#add_to_registry. = ags_sfz_region_add_to_registrycxx . . $ ags_sfz_region_add_to_registry(b3452eb36507abb3).; |
| 193 | connectable->remove_from_registrycxx . . $ _AgsConnectableInterface#remove_from_registry. = ags_sfz_region_remove_from_registrycxx . . $ ags_sfz_region_remove_from_registry(b3452eb36507abb3).; |
| 194 | |
| 195 | connectable->list_resourcecxx . . $ _AgsConnectableInterface#list_resource. = ags_sfz_region_list_resourcecxx . . $ ags_sfz_region_list_resource(671df6f11ff229f8).; |
| 196 | connectable->xml_composecxx . . $ _AgsConnectableInterface#xml_compose. = ags_sfz_region_xml_composecxx . . $ ags_sfz_region_xml_compose(671df6f11ff229f8).; |
| 197 | connectable->xml_parsecxx . . $ _AgsConnectableInterface#xml_parse. = ags_sfz_region_xml_parsecxx . . $ ags_sfz_region_xml_parse(7d7142ae9aeffd2b).; |
| 198 | |
| 199 | connectable->is_connectedcxx . . $ _AgsConnectableInterface#is_connected. = ags_sfz_region_is_connectedcxx . . $ ags_sfz_region_is_connected(35ce0433daa64ed5).; |
| 200 | |
| 201 | connectable->connectcxx . . $ _AgsConnectableInterface#connect. = ags_sfz_region_connectcxx . . $ ags_sfz_region_connect(b3452eb36507abb3).; |
| 202 | connectable->disconnectcxx . . $ _AgsConnectableInterface#disconnect. = ags_sfz_region_disconnectcxx . . $ ags_sfz_region_disconnect(b3452eb36507abb3).; |
| 203 | |
| 204 | connectable->connect_connectioncxx . . $ _AgsConnectableInterface#connect_connection. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 205 | connectable->disconnect_connectioncxx . . $ _AgsConnectableInterface#disconnect_connection. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 206 | } |
| 207 | |
| 208 | void |
| 209 | ags_sfz_region_initcxx . . $ ags_sfz_region_init(72147328303ef740).(AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region) |
| 210 | { |
| 211 | AgsConfigcxx . . $ AgsConfig# *config; |
| 212 | |
| 213 | sfz_region->flagscxx . . $ _AgsSFZRegion#flags. = 0; |
| 214 | sfz_region->connectable_flagscxx . . $ _AgsSFZRegion#connectable_flags. = 0; |
| 215 | |
| 216 | /* add sfz region mutex */ |
| 217 | g_rec_mutex_initcxx . . $ g_rec_mutex_init(70e02e1a6dfc5752).(&(sfz_region->obj_mutexcxx . . $ _AgsSFZRegion#obj_mutex.)); |
| 218 | |
| 219 | /* uuid */ |
| 220 | sfz_region->uuidcxx . . $ _AgsSFZRegion#uuid. = ags_uuid_alloccxx . . $ ags_uuid_alloc(88ef6de89069f274).(); |
| 221 | ags_uuid_generatecxx . . $ ags_uuid_generate(8abc78082c3770c).(sfz_region->uuidcxx . . $ _AgsSFZRegion#uuid.); |
| 222 | |
| 223 | sfz_region->nth_regioncxx . . $ _AgsSFZRegion#nth_region. = -1; |
| 224 | |
| 225 | sfz_region->groupcxx . . $ _AgsSFZRegion#group. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 226 | sfz_region->samplecxx . . $ _AgsSFZRegion#sample. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 227 | |
| 228 | sfz_region->controlcxx . . $ _AgsSFZRegion#control. = g_hash_table_new_fullcxx . . $ g_hash_table_new_full(e2dd12b570de7430).(g_str_hashcxx . . $ g_str_hash(b11f534102b1ad6)., g_str_equalcxx . . $ g_str_equal(9148c8c3ff42c9d8)., |
| 229 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, |
| 230 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 231 | } |
| 232 | |
| 233 | void |
| 234 | ags_sfz_region_set_propertycxx . . $ ags_sfz_region_set_property(d7c4bb29f36c0dc4).(GObjectcxx . . $ GObject# *gobject, |
| 235 | guintcxx . . $ guint# prop_id, |
| 236 | const GValuecxx . . $ GValue# *value, |
| 237 | GParamSpeccxx . . $ GParamSpec# *param_spec) |
| 238 | { |
| 239 | AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region; |
| 240 | |
| 241 | GRecMutexcxx . . $ GRecMutex# *sfz_region_mutex; |
| 242 | |
| 243 | sfz_region = AGS_SFZ_REGIONcxx . . $ `ags/audio/file/ags_sfz_region.h:31:9`!(gobject); |
| 244 | |
| 245 | /* get sfz region mutex */ |
| 246 | sfz_region_mutex = AGS_SFZ_REGION_GET_OBJ_MUTEXcxx . . $ `ags/audio/file/ags_sfz_region.h:37:9`!(sfz_region); |
| 247 | |
| 248 | switch(prop_id){ |
| 249 | case PROP_NTH_REGIONcxx . . $ PROP_NTH_REGION.: |
| 250 | { |
| 251 | gintcxx . . $ gint# nth_region; |
| 252 | |
| 253 | nth_region = g_value_get_intcxx . . $ g_value_get_int(f890c5c75ead5b21).(value); |
| 254 | |
| 255 | g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 256 | |
| 257 | if(nth_region == sfz_region->nth_regioncxx . . $ _AgsSFZRegion#nth_region.){ |
| 258 | g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 259 | |
| 260 | return; |
| 261 | } |
| 262 | |
| 263 | sfz_region->nth_regioncxx . . $ _AgsSFZRegion#nth_region. = nth_region; |
| 264 | |
| 265 | g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 266 | } |
| 267 | break; |
| 268 | case PROP_GROUPcxx . . $ PROP_GROUP.: |
| 269 | { |
| 270 | GObjectcxx . . $ GObject# *group; |
| 271 | |
| 272 | group = g_value_get_objectcxx . . $ g_value_get_object(e12dff36056c2cce).(value); |
| 273 | |
| 274 | g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 275 | |
| 276 | if(sfz_region->groupcxx . . $ _AgsSFZRegion#group. == group){ |
| 277 | g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 278 | |
| 279 | return; |
| 280 | } |
| 281 | |
| 282 | if(sfz_region->groupcxx . . $ _AgsSFZRegion#group. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){ |
| 283 | g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(sfz_region->groupcxx . . $ _AgsSFZRegion#group.); |
| 284 | } |
| 285 | |
| 286 | if(group != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){ |
| 287 | g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`!(group); |
| 288 | } |
| 289 | |
| 290 | sfz_region->groupcxx . . $ _AgsSFZRegion#group. = group; |
| 291 | |
| 292 | g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 293 | } |
| 294 | break; |
| 295 | case PROP_SAMPLEcxx . . $ PROP_SAMPLE.: |
| 296 | { |
| 297 | GObjectcxx . . $ GObject# *sample; |
| 298 | |
| 299 | sample = g_value_get_objectcxx . . $ g_value_get_object(e12dff36056c2cce).(value); |
| 300 | |
| 301 | g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 302 | |
| 303 | if(sfz_region->samplecxx . . $ _AgsSFZRegion#sample. == sample){ |
| 304 | g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 305 | |
| 306 | return; |
| 307 | } |
| 308 | |
| 309 | if(sfz_region->samplecxx . . $ _AgsSFZRegion#sample. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){ |
| 310 | g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(sfz_region->samplecxx . . $ _AgsSFZRegion#sample.); |
| 311 | } |
| 312 | |
| 313 | if(sample != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){ |
| 314 | g_object_refcxx . . $ `<external>/1341695927569185362/gobject.h:533:9`!(sample); |
| 315 | } |
| 316 | |
| 317 | sfz_region->samplecxx . . $ _AgsSFZRegion#sample. = sample; |
| 318 | |
| 319 | g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 320 | } |
| 321 | break; |
| 322 | default: |
| 323 | G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`!(gobject, prop_id, param_spec); |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | void |
| 328 | ags_sfz_region_get_propertycxx . . $ ags_sfz_region_get_property(cee2c52f22407c66).(GObjectcxx . . $ GObject# *gobject, |
| 329 | guintcxx . . $ guint# prop_id, |
| 330 | GValuecxx . . $ GValue# *value, |
| 331 | GParamSpeccxx . . $ GParamSpec# *param_spec) |
| 332 | { |
| 333 | AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region; |
| 334 | |
| 335 | GRecMutexcxx . . $ GRecMutex# *sfz_region_mutex; |
| 336 | |
| 337 | sfz_region = (AgsSFZRegioncxx . . $ AgsSFZRegion# *) gobject; |
| 338 | |
| 339 | /* get sfz region mutex */ |
| 340 | sfz_region_mutex = AGS_SFZ_REGION_GET_OBJ_MUTEXcxx . . $ `ags/audio/file/ags_sfz_region.h:37:9`!(sfz_region); |
| 341 | |
| 342 | switch(prop_id){ |
| 343 | case PROP_NTH_REGIONcxx . . $ PROP_NTH_REGION.: |
| 344 | { |
| 345 | g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 346 | |
| 347 | g_value_set_intcxx . . $ g_value_set_int(b698c61e8e30c4ea).(value, sfz_region->nth_regioncxx . . $ _AgsSFZRegion#nth_region.); |
| 348 | |
| 349 | g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 350 | } |
| 351 | break; |
| 352 | case PROP_GROUPcxx . . $ PROP_GROUP.: |
| 353 | { |
| 354 | g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 355 | |
| 356 | g_value_set_objectcxx . . $ g_value_set_object(e945b84c1e9702f).(value, sfz_region->groupcxx . . $ _AgsSFZRegion#group.); |
| 357 | |
| 358 | g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 359 | } |
| 360 | break; |
| 361 | case PROP_SAMPLEcxx . . $ PROP_SAMPLE.: |
| 362 | { |
| 363 | g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 364 | |
| 365 | g_value_set_objectcxx . . $ g_value_set_object(e945b84c1e9702f).(value, sfz_region->samplecxx . . $ _AgsSFZRegion#sample.); |
| 366 | |
| 367 | g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 368 | } |
| 369 | break; |
| 370 | default: |
| 371 | G_OBJECT_WARN_INVALID_PROPERTY_IDcxx . . $ `<external>/1341695927569185362/gobject.h:690:9`!(gobject, prop_id, param_spec); |
| 372 | } |
| 373 | } |
| 374 | |
| 375 | void |
| 376 | ags_sfz_region_disposecxx . . $ ags_sfz_region_dispose(6087475fa43034d3).(GObjectcxx . . $ GObject# *gobject) |
| 377 | { |
| 378 | AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region; |
| 379 | |
| 380 | sfz_region = AGS_SFZ_REGIONcxx . . $ `ags/audio/file/ags_sfz_region.h:31:9`!(gobject); |
| 381 | |
| 382 | if(sfz_region->samplecxx . . $ _AgsSFZRegion#sample. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){ |
| 383 | g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(sfz_region->samplecxx . . $ _AgsSFZRegion#sample.); |
| 384 | |
| 385 | sfz_region->samplecxx . . $ _AgsSFZRegion#sample. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 386 | } |
| 387 | |
| 388 | if(sfz_region->groupcxx . . $ _AgsSFZRegion#group. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){ |
| 389 | g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(sfz_region->groupcxx . . $ _AgsSFZRegion#group.); |
| 390 | |
| 391 | sfz_region->groupcxx . . $ _AgsSFZRegion#group. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 392 | } |
| 393 | |
| 394 | /* call parent */ |
| 395 | G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`!(ags_sfz_region_parent_class)->disposecxx . . $ _GObjectClass#dispose.(gobject); |
| 396 | } |
| 397 | |
| 398 | void |
| 399 | ags_sfz_region_finalizecxx . . $ ags_sfz_region_finalize(6087475fa43034d3).(GObjectcxx . . $ GObject# *gobject) |
| 400 | { |
| 401 | AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region; |
| 402 | |
| 403 | sfz_region = AGS_SFZ_REGIONcxx . . $ `ags/audio/file/ags_sfz_region.h:31:9`!(gobject); |
| 404 | |
| 405 | if(sfz_region->samplecxx . . $ _AgsSFZRegion#sample. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){ |
| 406 | g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(sfz_region->samplecxx . . $ _AgsSFZRegion#sample.); |
| 407 | } |
| 408 | |
| 409 | if(sfz_region->groupcxx . . $ _AgsSFZRegion#group. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){ |
| 410 | g_object_unrefcxx . . $ g_object_unref(5d22bdacc48458e8).(sfz_region->groupcxx . . $ _AgsSFZRegion#group.); |
| 411 | } |
| 412 | |
| 413 | /* call parent */ |
| 414 | G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`!(ags_sfz_region_parent_class)->finalizecxx . . $ _GObjectClass#finalize.(gobject); |
| 415 | } |
| 416 | |
| 417 | AgsUUIDcxx . . $ AgsUUID#* |
| 418 | ags_sfz_region_get_uuidcxx . . $ ags_sfz_region_get_uuid(99a437e5c71ec353).(AgsConnectablecxx . . $ AgsConnectable# *connectable) |
| 419 | { |
| 420 | AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region; |
| 421 | |
| 422 | AgsUUIDcxx . . $ AgsUUID# *ptr; |
| 423 | |
| 424 | GRecMutexcxx . . $ GRecMutex# *sfz_region_mutex; |
| 425 | |
| 426 | sfz_region = AGS_SFZ_REGIONcxx . . $ `ags/audio/file/ags_sfz_region.h:31:9`!(connectable); |
| 427 | |
| 428 | /* get sfz region mutex */ |
| 429 | sfz_region_mutex = AGS_SFZ_REGION_GET_OBJ_MUTEXcxx . . $ `ags/audio/file/ags_sfz_region.h:37:9`!(sfz_region); |
| 430 | |
| 431 | /* get UUID */ |
| 432 | g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 433 | |
| 434 | ptr = sfz_region->uuidcxx . . $ _AgsSFZRegion#uuid.; |
| 435 | |
| 436 | g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 437 | |
| 438 | return(ptr); |
| 439 | } |
| 440 | |
| 441 | gbooleancxx . . $ gboolean# |
| 442 | ags_sfz_region_has_resourcecxx . . $ ags_sfz_region_has_resource(35ce0433daa64ed5).(AgsConnectablecxx . . $ AgsConnectable# *connectable) |
| 443 | { |
| 444 | return(TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!); |
| 445 | } |
| 446 | |
| 447 | gbooleancxx . . $ gboolean# |
| 448 | ags_sfz_region_is_readycxx . . $ ags_sfz_region_is_ready(35ce0433daa64ed5).(AgsConnectablecxx . . $ AgsConnectable# *connectable) |
| 449 | { |
| 450 | AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region; |
| 451 | |
| 452 | gbooleancxx . . $ gboolean# is_ready; |
| 453 | |
| 454 | GRecMutexcxx . . $ GRecMutex# *sfz_region_mutex; |
| 455 | |
| 456 | sfz_region = AGS_SFZ_REGIONcxx . . $ `ags/audio/file/ags_sfz_region.h:31:9`!(connectable); |
| 457 | |
| 458 | /* get sfz region mutex */ |
| 459 | sfz_region_mutex = AGS_SFZ_REGION_GET_OBJ_MUTEXcxx . . $ `ags/audio/file/ags_sfz_region.h:37:9`!(sfz_region); |
| 460 | |
| 461 | /* check is ready */ |
| 462 | g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 463 | |
| 464 | is_ready = ((AGS_CONNECTABLE_ADDED_TO_REGISTRYcxx . . $ AGS_CONNECTABLE_ADDED_TO_REGISTRY. & (sfz_region->connectable_flagscxx . . $ _AgsSFZRegion#connectable_flags.)) != 0) ? TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!: FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 465 | |
| 466 | g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 467 | |
| 468 | return(is_ready); |
| 469 | } |
| 470 | |
| 471 | void |
| 472 | ags_sfz_region_add_to_registrycxx . . $ ags_sfz_region_add_to_registry(b3452eb36507abb3).(AgsConnectablecxx . . $ AgsConnectable# *connectable) |
| 473 | { |
| 474 | AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region; |
| 475 | |
| 476 | AgsRegistrycxx . . $ AgsRegistry# *registry; |
| 477 | AgsRegistryEntrycxx . . $ AgsRegistryEntry# *entry; |
| 478 | |
| 479 | AgsApplicationContextcxx . . $ AgsApplicationContext# *application_context; |
| 480 | |
| 481 | GRecMutexcxx . . $ GRecMutex# *sfz_region_mutex; |
| 482 | |
| 483 | if(ags_connectable_is_readycxx . . $ ags_connectable_is_ready(35ce0433daa64ed5).(connectable)){ |
| 484 | return; |
| 485 | } |
| 486 | |
| 487 | sfz_region = AGS_SFZ_REGIONcxx . . $ `ags/audio/file/ags_sfz_region.h:31:9`!(connectable); |
| 488 | |
| 489 | /* get sfz_region mutex */ |
| 490 | sfz_region_mutex = AGS_SFZ_REGION_GET_OBJ_MUTEXcxx . . $ `ags/audio/file/ags_sfz_region.h:37:9`!(sfz_region); |
| 491 | |
| 492 | g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 493 | |
| 494 | sfz_region->connectable_flagscxx . . $ _AgsSFZRegion#connectable_flags. |= AGS_CONNECTABLE_ADDED_TO_REGISTRYcxx . . $ AGS_CONNECTABLE_ADDED_TO_REGISTRY.; |
| 495 | |
| 496 | g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 497 | |
| 498 | application_context = ags_application_context_get_instancecxx . . $ ags_application_context_get_instance(172bffbe05ff4db7).(); |
| 499 | |
| 500 | registry = (AgsRegistrycxx . . $ AgsRegistry# *) ags_service_provider_get_registrycxx . . $ ags_service_provider_get_registry(20a8fe51f77f1032).(AGS_SERVICE_PROVIDERcxx . . $ `ags/server/ags_service_provider.h:32:9`!(application_context)); |
| 501 | |
| 502 | if(registry != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!){ |
| 503 | entry = ags_registry_entry_alloccxx . . $ ags_registry_entry_alloc(c5c21b6f036a7d6c).(); |
| 504 | g_value_set_objectcxx . . $ g_value_set_object(e945b84c1e9702f).(entry->entrycxx . . $ _AgsRegistryEntry#entry., |
| 505 | (gpointercxx . . $ gpointer#) sfz_region); |
| 506 | ags_registry_add_entrycxx . . $ ags_registry_add_entry(3830f67917086343).(registry, |
| 507 | entry); |
| 508 | } |
| 509 | } |
| 510 | |
| 511 | void |
| 512 | ags_sfz_region_remove_from_registrycxx . . $ ags_sfz_region_remove_from_registry(b3452eb36507abb3).(AgsConnectablecxx . . $ AgsConnectable# *connectable) |
| 513 | { |
| 514 | AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region; |
| 515 | |
| 516 | GRecMutexcxx . . $ GRecMutex# *sfz_region_mutex; |
| 517 | |
| 518 | if(!ags_connectable_is_readycxx . . $ ags_connectable_is_ready(35ce0433daa64ed5).(connectable)){ |
| 519 | return; |
| 520 | } |
| 521 | |
| 522 | sfz_region = AGS_SFZ_REGIONcxx . . $ `ags/audio/file/ags_sfz_region.h:31:9`!(connectable); |
| 523 | |
| 524 | /* get sfz_region mutex */ |
| 525 | sfz_region_mutex = AGS_SFZ_REGION_GET_OBJ_MUTEXcxx . . $ `ags/audio/file/ags_sfz_region.h:37:9`!(sfz_region); |
| 526 | |
| 527 | g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 528 | |
| 529 | sfz_region->connectable_flagscxx . . $ _AgsSFZRegion#connectable_flags. &= (~AGS_CONNECTABLE_ADDED_TO_REGISTRYcxx . . $ AGS_CONNECTABLE_ADDED_TO_REGISTRY.); |
| 530 | |
| 531 | g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 532 | |
| 533 | //TODO:JK: implement me |
| 534 | } |
| 535 | |
| 536 | xmlNodecxx . . $ xmlNode#* |
| 537 | ags_sfz_region_list_resourcecxx . . $ ags_sfz_region_list_resource(671df6f11ff229f8).(AgsConnectablecxx . . $ AgsConnectable# *connectable) |
| 538 | { |
| 539 | xmlNodecxx . . $ xmlNode# *node; |
| 540 | |
| 541 | node = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 542 | |
| 543 | //TODO:JK: implement me |
| 544 | |
| 545 | return(node); |
| 546 | } |
| 547 | |
| 548 | xmlNodecxx . . $ xmlNode#* |
| 549 | ags_sfz_region_xml_composecxx . . $ ags_sfz_region_xml_compose(671df6f11ff229f8).(AgsConnectablecxx . . $ AgsConnectable# *connectable) |
| 550 | { |
| 551 | xmlNodecxx . . $ xmlNode# *node; |
| 552 | |
| 553 | node = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 554 | |
| 555 | //TODO:JK: implement me |
| 556 | |
| 557 | return(node); |
| 558 | } |
| 559 | |
| 560 | void |
| 561 | ags_sfz_region_xml_parsecxx . . $ ags_sfz_region_xml_parse(7d7142ae9aeffd2b).(AgsConnectablecxx . . $ AgsConnectable# *connectable, |
| 562 | xmlNodecxx . . $ xmlNode# *node) |
| 563 | { |
| 564 | //TODO:JK: implement me |
| 565 | } |
| 566 | |
| 567 | gbooleancxx . . $ gboolean# |
| 568 | ags_sfz_region_is_connectedcxx . . $ ags_sfz_region_is_connected(35ce0433daa64ed5).(AgsConnectablecxx . . $ AgsConnectable# *connectable) |
| 569 | { |
| 570 | AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region; |
| 571 | |
| 572 | gbooleancxx . . $ gboolean# is_connected; |
| 573 | |
| 574 | GRecMutexcxx . . $ GRecMutex# *sfz_region_mutex; |
| 575 | |
| 576 | sfz_region = AGS_SFZ_REGIONcxx . . $ `ags/audio/file/ags_sfz_region.h:31:9`!(connectable); |
| 577 | |
| 578 | /* get sfz_region mutex */ |
| 579 | sfz_region_mutex = AGS_SFZ_REGION_GET_OBJ_MUTEXcxx . . $ `ags/audio/file/ags_sfz_region.h:37:9`!(sfz_region); |
| 580 | |
| 581 | /* check is connected */ |
| 582 | g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 583 | |
| 584 | is_connected = ((AGS_CONNECTABLE_CONNECTEDcxx . . $ AGS_CONNECTABLE_CONNECTED. & (sfz_region->connectable_flagscxx . . $ _AgsSFZRegion#connectable_flags.)) != 0) ? TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!: FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 585 | |
| 586 | g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 587 | |
| 588 | return(is_connected); |
| 589 | } |
| 590 | |
| 591 | void |
| 592 | ags_sfz_region_connectcxx . . $ ags_sfz_region_connect(b3452eb36507abb3).(AgsConnectablecxx . . $ AgsConnectable# *connectable) |
| 593 | { |
| 594 | AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region; |
| 595 | |
| 596 | GRecMutexcxx . . $ GRecMutex# *sfz_region_mutex; |
| 597 | |
| 598 | if(ags_connectable_is_connectedcxx . . $ ags_connectable_is_connected(35ce0433daa64ed5).(connectable)){ |
| 599 | return; |
| 600 | } |
| 601 | |
| 602 | sfz_region = AGS_SFZ_REGIONcxx . . $ `ags/audio/file/ags_sfz_region.h:31:9`!(connectable); |
| 603 | |
| 604 | /* get sfz_region mutex */ |
| 605 | sfz_region_mutex = AGS_SFZ_REGION_GET_OBJ_MUTEXcxx . . $ `ags/audio/file/ags_sfz_region.h:37:9`!(sfz_region); |
| 606 | |
| 607 | g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 608 | |
| 609 | sfz_region->connectable_flagscxx . . $ _AgsSFZRegion#connectable_flags. |= AGS_CONNECTABLE_CONNECTEDcxx . . $ AGS_CONNECTABLE_CONNECTED.; |
| 610 | |
| 611 | g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 612 | } |
| 613 | |
| 614 | void |
| 615 | ags_sfz_region_disconnectcxx . . $ ags_sfz_region_disconnect(b3452eb36507abb3).(AgsConnectablecxx . . $ AgsConnectable# *connectable) |
| 616 | { |
| 617 | AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region; |
| 618 | |
| 619 | GRecMutexcxx . . $ GRecMutex# *sfz_region_mutex; |
| 620 | |
| 621 | if(!ags_connectable_is_connectedcxx . . $ ags_connectable_is_connected(35ce0433daa64ed5).(connectable)){ |
| 622 | return; |
| 623 | } |
| 624 | |
| 625 | sfz_region = AGS_SFZ_REGIONcxx . . $ `ags/audio/file/ags_sfz_region.h:31:9`!(connectable); |
| 626 | |
| 627 | /* get sfz_region mutex */ |
| 628 | sfz_region_mutex = AGS_SFZ_REGION_GET_OBJ_MUTEXcxx . . $ `ags/audio/file/ags_sfz_region.h:37:9`!(sfz_region); |
| 629 | |
| 630 | g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 631 | |
| 632 | sfz_region->connectable_flagscxx . . $ _AgsSFZRegion#connectable_flags. &= (~AGS_CONNECTABLE_CONNECTEDcxx . . $ AGS_CONNECTABLE_CONNECTED.); |
| 633 | |
| 634 | g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 635 | } |
| 636 | |
| 637 | /** |
| 638 | * ags_sfz_region_get_group: |
| 639 | * @sfz_region: the #AgsSFZRegion |
| 640 | * |
| 641 | * Get the groups of @sfz_region. |
| 642 | * |
| 643 | * Returns: (transfer full): the #AgsSFZGroup |
| 644 | * |
| 645 | * Since: 3.17.0 |
| 646 | */ |
| 647 | GObjectcxx . . $ GObject#* |
| 648 | ags_sfz_region_get_groupcxx . . $ ags_sfz_region_get_group(eb96fd83f2650cf6).(AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region) |
| 649 | { |
| 650 | GObjectcxx . . $ GObject# *group; |
| 651 | |
| 652 | if(!AGS_IS_SFZ_REGIONcxx . . $ `ags/audio/file/ags_sfz_region.h:33:9`!(sfz_region)){ |
| 653 | return(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 654 | } |
| 655 | |
| 656 | group = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 657 | |
| 658 | g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(sfz_region, |
| 659 | "group", &group, |
| 660 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 661 | |
| 662 | return(group); |
| 663 | } |
| 664 | |
| 665 | /** |
| 666 | * ags_sfz_region_set_group: |
| 667 | * @sfz_region: the #AgsSFZRegion |
| 668 | * @group: (transfer none): the #AgsSFZGroup |
| 669 | * |
| 670 | * Set the group field of @sfz_region |
| 671 | * |
| 672 | * Since: 3.17.0 |
| 673 | */ |
| 674 | void |
| 675 | ags_sfz_region_set_groupcxx . . $ ags_sfz_region_set_group(d2ea0df4d851a1c9).(AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region, |
| 676 | GObjectcxx . . $ GObject# *group) |
| 677 | { |
| 678 | if(!AGS_IS_SFZ_REGIONcxx . . $ `ags/audio/file/ags_sfz_region.h:33:9`!(sfz_region)){ |
| 679 | return; |
| 680 | } |
| 681 | |
| 682 | g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d).(sfz_region, |
| 683 | "group", group, |
| 684 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 685 | } |
| 686 | |
| 687 | /** |
| 688 | * ags_sfz_region_get_sample: |
| 689 | * @sfz_region: the #AgsSFZRegion |
| 690 | * |
| 691 | * Get the samples of @sfz_region. |
| 692 | * |
| 693 | * Returns: (transfer full): the #AgsSFZSample |
| 694 | * |
| 695 | * Since: 3.17.0 |
| 696 | */ |
| 697 | GObjectcxx . . $ GObject#* |
| 698 | ags_sfz_region_get_samplecxx . . $ ags_sfz_region_get_sample(eb96fd83f2650cf6).(AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region) |
| 699 | { |
| 700 | GObjectcxx . . $ GObject# *sample; |
| 701 | |
| 702 | if(!AGS_IS_SFZ_REGIONcxx . . $ `ags/audio/file/ags_sfz_region.h:33:9`!(sfz_region)){ |
| 703 | return(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 704 | } |
| 705 | |
| 706 | sample = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 707 | |
| 708 | g_object_getcxx . . $ g_object_get(1ac911bdc4e9a14d).(sfz_region, |
| 709 | "sample", &sample, |
| 710 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 711 | |
| 712 | return(sample); |
| 713 | } |
| 714 | |
| 715 | /** |
| 716 | * ags_sfz_region_set_sample: |
| 717 | * @sfz_region: the #AgsSFZRegion |
| 718 | * @sample: (transfer none): the #AgsSFZSample |
| 719 | * |
| 720 | * Set the sample field of @sfz_region |
| 721 | * |
| 722 | * Since: 3.17.0 |
| 723 | */ |
| 724 | void |
| 725 | ags_sfz_region_set_samplecxx . . $ ags_sfz_region_set_sample(d2ea0df4d851a1c9).(AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region, |
| 726 | GObjectcxx . . $ GObject# *sample) |
| 727 | { |
| 728 | if(!AGS_IS_SFZ_REGIONcxx . . $ `ags/audio/file/ags_sfz_region.h:33:9`!(sfz_region)){ |
| 729 | return; |
| 730 | } |
| 731 | |
| 732 | g_object_setcxx . . $ g_object_set(1ac911bdc4e9a14d).(sfz_region, |
| 733 | "sample", sample, |
| 734 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 735 | } |
| 736 | |
| 737 | /** |
| 738 | * ags_sfz_region_get_control: |
| 739 | * @sfz_region: the #AgsSFZRegion |
| 740 | * |
| 741 | * Get all control of @sfz_region. |
| 742 | * |
| 743 | * Returns: (element-type utf8) (transfer container): the #GList-struct containing controls as string |
| 744 | * |
| 745 | * Since: 3.17.0 |
| 746 | */ |
| 747 | GListcxx . . $ GList#* |
| 748 | ags_sfz_region_get_controlcxx . . $ ags_sfz_region_get_control(d7c22dd01e5b094b).(AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region) |
| 749 | { |
| 750 | GListcxx . . $ GList# *start_list; |
| 751 | |
| 752 | GRecMutexcxx . . $ GRecMutex# *sfz_region_mutex; |
| 753 | |
| 754 | if(!AGS_IS_SFZ_REGIONcxx . . $ `ags/audio/file/ags_sfz_region.h:33:9`!(sfz_region)){ |
| 755 | return(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 756 | } |
| 757 | |
| 758 | /* get sfz_region mutex */ |
| 759 | sfz_region_mutex = AGS_SFZ_REGION_GET_OBJ_MUTEXcxx . . $ `ags/audio/file/ags_sfz_region.h:37:9`!(sfz_region); |
| 760 | |
| 761 | /* get */ |
| 762 | g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 763 | |
| 764 | start_list = g_hash_table_get_keyscxx . . $ g_hash_table_get_keys(1f44cec2c80773f2).(sfz_region->controlcxx . . $ _AgsSFZRegion#control.); |
| 765 | |
| 766 | g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 767 | |
| 768 | return(start_list); |
| 769 | } |
| 770 | |
| 771 | /** |
| 772 | * ags_sfz_region_insert_control: |
| 773 | * @sfz_region: the #AgsSFZRegion |
| 774 | * @key: the key |
| 775 | * @value: the value |
| 776 | * |
| 777 | * Insert control specified by @key and @value to @sfz_region. |
| 778 | * |
| 779 | * Since: 3.0.0 |
| 780 | */ |
| 781 | void |
| 782 | ags_sfz_region_insert_controlcxx . . $ ags_sfz_region_insert_control(42934b042dcb9fb7).(AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region, |
| 783 | gcharcxx . . $ gchar# *key, |
| 784 | gcharcxx . . $ gchar# *value) |
| 785 | { |
| 786 | GRecMutexcxx . . $ GRecMutex# *sfz_region_mutex; |
| 787 | |
| 788 | if(!AGS_IS_SFZ_REGIONcxx . . $ `ags/audio/file/ags_sfz_region.h:33:9`!(sfz_region)){ |
| 789 | return; |
| 790 | } |
| 791 | |
| 792 | /* get sfz_region mutex */ |
| 793 | sfz_region_mutex = AGS_SFZ_REGION_GET_OBJ_MUTEXcxx . . $ `ags/audio/file/ags_sfz_region.h:37:9`!(sfz_region); |
| 794 | |
| 795 | /* insert */ |
| 796 | g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 797 | |
| 798 | g_hash_table_insertcxx . . $ g_hash_table_insert(6a7c46015dd5ef26).(sfz_region->controlcxx . . $ _AgsSFZRegion#control., |
| 799 | key, |
| 800 | value); |
| 801 | |
| 802 | g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 803 | } |
| 804 | |
| 805 | /** |
| 806 | * ags_sfz_region_lookup_control: |
| 807 | * @sfz_region: the #AgsSFZRegion |
| 808 | * @key: the key |
| 809 | * |
| 810 | * Lookup control specified by @key of @sfz_region. |
| 811 | * |
| 812 | * Returns: (transfer full): the matching value of key |
| 813 | * |
| 814 | * Since: 3.0.0 |
| 815 | */ |
| 816 | gcharcxx . . $ gchar#* |
| 817 | ags_sfz_region_lookup_controlcxx . . $ ags_sfz_region_lookup_control(9185208a8437e907).(AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region, |
| 818 | gcharcxx . . $ gchar# *key) |
| 819 | { |
| 820 | gcharcxx . . $ gchar# *value; |
| 821 | |
| 822 | GRecMutexcxx . . $ GRecMutex# *sfz_region_mutex; |
| 823 | |
| 824 | if(!AGS_IS_SFZ_REGIONcxx . . $ `ags/audio/file/ags_sfz_region.h:33:9`!(sfz_region)){ |
| 825 | return(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 826 | } |
| 827 | |
| 828 | /* get sfz_region mutex */ |
| 829 | sfz_region_mutex = AGS_SFZ_REGION_GET_OBJ_MUTEXcxx . . $ `ags/audio/file/ags_sfz_region.h:37:9`!(sfz_region); |
| 830 | |
| 831 | /* lookup */ |
| 832 | g_rec_mutex_lockcxx . . $ g_rec_mutex_lock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 833 | |
| 834 | value = g_hash_table_lookupcxx . . $ g_hash_table_lookup(8183d62c39a6a245).(sfz_region->controlcxx . . $ _AgsSFZRegion#control., |
| 835 | key); |
| 836 | |
| 837 | value = g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`!(value); |
| 838 | |
| 839 | g_rec_mutex_unlockcxx . . $ g_rec_mutex_unlock(70e02e1a6dfc5752).(sfz_region_mutex); |
| 840 | |
| 841 | return(value); |
| 842 | } |
| 843 | |
| 844 | /** |
| 845 | * ags_sfz_region_new: |
| 846 | * |
| 847 | * Creates a new instance of #AgsSFZRegion. |
| 848 | * |
| 849 | * Returns: the new #AgsSFZRegion. |
| 850 | * |
| 851 | * Since: 3.0.0 |
| 852 | */ |
| 853 | AgsSFZRegioncxx . . $ AgsSFZRegion#* |
| 854 | ags_sfz_region_newcxx . . $ ags_sfz_region_new(79f8e5e148354e4).() |
| 855 | { |
| 856 | AgsSFZRegioncxx . . $ AgsSFZRegion# *sfz_region; |
| 857 | |
| 858 | sfz_region = (AgsSFZRegioncxx . . $ AgsSFZRegion# *) g_object_newcxx . . $ g_object_new(8485fe61b4be4c78).(AGS_TYPE_SFZ_REGIONcxx . . $ `ags/audio/file/ags_sfz_region.h:30:9`!, |
| 859 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 860 | |
| 861 | return(sfz_region); |
| 862 | } |