Lines Matching refs:dls

49 static void ipatch_dls2_init(IpatchDLS2 *dls);
148 ipatch_dls2_init(IpatchDLS2 *dls) in ipatch_dls2_init() argument
150 g_object_set(dls, in ipatch_dls2_init()
155 ipatch_item_clear_flags(IPATCH_ITEM(dls), IPATCH_BASE_CHANGED); in ipatch_dls2_init()
162 IpatchDLS2 *dls = IPATCH_DLS2(gobject); in ipatch_dls2_finalize() local
164 IPATCH_ITEM_WLOCK(dls); in ipatch_dls2_finalize()
166 ipatch_dls2_info_free(dls->info); in ipatch_dls2_finalize()
167 dls->info = NULL; in ipatch_dls2_finalize()
169 g_free(dls->dlid); in ipatch_dls2_finalize()
170 dls->dlid = NULL; in ipatch_dls2_finalize()
172 IPATCH_ITEM_WUNLOCK(dls); in ipatch_dls2_finalize()
184 IpatchDLS2 *dls = IPATCH_DLS2(object); in ipatch_dls2_set_property() local
201 IPATCH_ITEM_WLOCK(dls); in ipatch_dls2_set_property()
205 ipatch_item_set_flags(dls, IPATCH_DLS2_VERSION_SET); in ipatch_dls2_set_property()
206 dls->ms_version = (guint32)msu << 16 || msl; in ipatch_dls2_set_property()
207 dls->ls_version = (guint32)lsu << 16 || lsl; in ipatch_dls2_set_property()
211 ipatch_item_clear_flags(dls, IPATCH_DLS2_VERSION_SET); in ipatch_dls2_set_property()
214 IPATCH_ITEM_WUNLOCK(dls); in ipatch_dls2_set_property()
218 IPATCH_ITEM_WLOCK(dls); in ipatch_dls2_set_property()
219 retval = ipatch_dls2_info_set_property(&dls->info, property_id, value); in ipatch_dls2_set_property()
220 IPATCH_ITEM_WUNLOCK(dls); in ipatch_dls2_set_property()
225 ipatch_item_prop_notify((IpatchItem *)dls, ipatch_item_pspec_title, in ipatch_dls2_set_property()
240 IpatchDLS2 *dls; in ipatch_dls2_get_property() local
245 dls = IPATCH_DLS2(object); in ipatch_dls2_get_property()
252 IPATCH_ITEM_RLOCK(dls); in ipatch_dls2_get_property()
254 version_set = (ipatch_item_get_flags(dls) & IPATCH_DLS2_VERSION_SET) > 0; in ipatch_dls2_get_property()
255 ms = dls->ms_version; in ipatch_dls2_get_property()
256 ls = dls->ls_version; in ipatch_dls2_get_property()
258 IPATCH_ITEM_RUNLOCK(dls); in ipatch_dls2_get_property()
273 IPATCH_ITEM_RLOCK(dls); in ipatch_dls2_get_property()
274 retval = ipatch_dls2_info_get_property(dls->info, property_id, value); in ipatch_dls2_get_property()
275 IPATCH_ITEM_RUNLOCK(dls); in ipatch_dls2_get_property()
378 IpatchDLS2 *dls = IPATCH_DLS2(container); in ipatch_dls2_container_init_iter() local
382 ipatch_iter_GSList_init(iter, &dls->insts); in ipatch_dls2_container_init_iter()
386 ipatch_iter_GSList_init(iter, &dls->samples); in ipatch_dls2_container_init_iter()
402 IpatchDLS2 *dls = IPATCH_DLS2(container); in ipatch_dls2_container_make_unique() local
406 IPATCH_ITEM_WLOCK(dls); in ipatch_dls2_container_make_unique()
418 ipatch_base_find_unused_midi_locale(IPATCH_BASE(dls), in ipatch_dls2_container_make_unique()
429 IPATCH_ITEM_WUNLOCK(dls); in ipatch_dls2_container_make_unique()
434 newname = ipatch_dls2_make_unique_name(dls, G_TYPE_FROM_INSTANCE(item), in ipatch_dls2_container_make_unique()
442 IPATCH_ITEM_WUNLOCK(dls); in ipatch_dls2_container_make_unique()
454 IpatchDLS2 *dls = IPATCH_DLS2(base); in ipatch_dls2_base_find_unused_locale() local
462 IPATCH_ITEM_RLOCK(dls); in ipatch_dls2_base_find_unused_locale()
463 p = dls->insts; in ipatch_dls2_base_find_unused_locale()
477 IPATCH_ITEM_RUNLOCK(dls); in ipatch_dls2_base_find_unused_locale()
568 ipatch_dls2_set_file(IpatchDLS2 *dls, IpatchDLSFile *file) in ipatch_dls2_set_file() argument
570 g_return_if_fail(IPATCH_IS_DLS2(dls)); in ipatch_dls2_set_file()
573 ipatch_base_set_file(IPATCH_BASE(dls), IPATCH_FILE(file)); in ipatch_dls2_set_file()
590 ipatch_dls2_get_file(IpatchDLS2 *dls) in ipatch_dls2_get_file() argument
594 g_return_val_if_fail(IPATCH_IS_DLS2(dls), NULL); in ipatch_dls2_get_file()
596 file = ipatch_base_get_file(IPATCH_BASE(dls)); in ipatch_dls2_get_file()
620 ipatch_dls2_get_info(IpatchDLS2 *dls, guint32 fourcc) in ipatch_dls2_get_info() argument
624 g_return_val_if_fail(IPATCH_IS_DLS2(dls), NULL); in ipatch_dls2_get_info()
626 IPATCH_ITEM_RLOCK(dls); in ipatch_dls2_get_info()
627 val = ipatch_dls2_info_get(dls->info, fourcc); in ipatch_dls2_get_info()
628 IPATCH_ITEM_RUNLOCK(dls); in ipatch_dls2_get_info()
644 ipatch_dls2_set_info(IpatchDLS2 *dls, guint32 fourcc, const char *val) in ipatch_dls2_set_info() argument
648 g_return_if_fail(IPATCH_IS_DLS2(dls)); in ipatch_dls2_set_info()
654 g_value_take_string(&oldval, ipatch_dls2_get_info(dls, fourcc)); in ipatch_dls2_set_info()
656 IPATCH_ITEM_WLOCK(dls); in ipatch_dls2_set_info()
657 ipatch_dls2_info_set(&dls->info, fourcc, val); in ipatch_dls2_set_info()
658 IPATCH_ITEM_WUNLOCK(dls); in ipatch_dls2_set_info()
660 ipatch_dls2_info_notify((IpatchItem *)dls, fourcc, &newval, &oldval); in ipatch_dls2_set_info()
664 ipatch_item_prop_notify((IpatchItem *)dls, ipatch_item_pspec_title, in ipatch_dls2_set_info()
690 ipatch_dls2_make_unique_name(IpatchDLS2 *dls, GType child_type, in ipatch_dls2_make_unique_name() argument
698 g_return_val_if_fail(IPATCH_IS_DLS2(dls), NULL); in ipatch_dls2_make_unique_name()
702 list = &dls->insts; in ipatch_dls2_make_unique_name()
712 list = &dls->samples; in ipatch_dls2_make_unique_name()
723 g_type_name(child_type), g_type_name(G_OBJECT_TYPE(dls))); in ipatch_dls2_make_unique_name()
734 IPATCH_ITEM_RLOCK(dls); in ipatch_dls2_make_unique_name()
764 IPATCH_ITEM_RUNLOCK(dls); in ipatch_dls2_make_unique_name()
790 ipatch_dls2_find_inst(IpatchDLS2 *dls, const char *name, int bank, in ipatch_dls2_find_inst() argument
798 g_return_val_if_fail(IPATCH_IS_DLS2(dls), NULL); in ipatch_dls2_find_inst()
806 IPATCH_ITEM_RLOCK(dls); in ipatch_dls2_find_inst()
807 p = dls->insts; in ipatch_dls2_find_inst()
822 IPATCH_ITEM_RUNLOCK(dls); in ipatch_dls2_find_inst()
830 IPATCH_ITEM_RUNLOCK(dls); in ipatch_dls2_find_inst()
850 ipatch_dls2_find_sample(IpatchDLS2 *dls, const char *name, in ipatch_dls2_find_sample() argument
857 g_return_val_if_fail(IPATCH_IS_DLS2(dls), NULL); in ipatch_dls2_find_sample()
860 IPATCH_ITEM_RLOCK(dls); in ipatch_dls2_find_sample()
861 p = dls->samples; in ipatch_dls2_find_sample()
874 IPATCH_ITEM_RUNLOCK(dls); in ipatch_dls2_find_sample()
882 IPATCH_ITEM_RUNLOCK(dls); in ipatch_dls2_find_sample()
900 IpatchDLS2 *dls; in ipatch_dls2_get_region_references() local
912 dls = IPATCH_DLS2(pitem); in ipatch_dls2_get_region_references()
916 IPATCH_ITEM_RLOCK(dls); in ipatch_dls2_get_region_references()
918 success = ipatch_container_init_iter((IpatchContainer *)dls, &iter, in ipatch_dls2_get_region_references()
928 success = ipatch_container_init_iter((IpatchContainer *)dls, in ipatch_dls2_get_region_references()
951 IPATCH_ITEM_RUNLOCK(dls); in ipatch_dls2_get_region_references()