1 /* 2 * libInstPatch 3 * Copyright (C) 1999-2014 Element Green <element@elementsofsound.org> 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public License 7 * as published by the Free Software Foundation; version 2.1 8 * of the License only. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 * 02110-1301, USA or on the web at http://www.gnu.org. 19 */ 20 #ifndef __IPATCH_GIG_H__ 21 #define __IPATCH_GIG_H__ 22 23 #include <glib.h> 24 #include <glib-object.h> 25 26 /* NOTE: See IpatchGigFile.h for some info on GigaSampler file format */ 27 28 typedef struct _IpatchGig IpatchGig; 29 typedef struct _IpatchGigClass IpatchGigClass; 30 31 #include <libinstpatch/IpatchDLS2.h> 32 #include <libinstpatch/IpatchSF2Gen.h> 33 34 #define IPATCH_TYPE_GIG (ipatch_gig_get_type ()) 35 #define IPATCH_GIG(obj) \ 36 (G_TYPE_CHECK_INSTANCE_CAST ((obj), IPATCH_TYPE_GIG, IpatchGig)) 37 #define IPATCH_GIG_CLASS(klass) \ 38 (G_TYPE_CHECK_CLASS_CAST ((klass), IPATCH_TYPE_GIG, IpatchGigClass)) 39 #define IPATCH_IS_GIG(obj) \ 40 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IPATCH_TYPE_GIG)) 41 #define IPATCH_IS_GIG_CLASS(klass) \ 42 (G_TYPE_CHECK_CLASS_TYPE ((klass), IPATCH_TYPE_GIG)) 43 #define IPATCH_GIG_GET_CLASS(obj) \ 44 (G_TYPE_INSTANCE_GET_CLASS ((obj), IPATCH_TYPE_GIG, IpatchGigClass)) 45 46 /* GigaSampler object */ 47 struct _IpatchGig 48 { 49 IpatchDLS2 parent_instance; /* derived from DLS2 object */ 50 GSList *group_names; /* sample group names */ 51 }; 52 53 struct _IpatchGigClass 54 { 55 IpatchDLS2Class parent_class; 56 }; 57 58 /* Default GigaSampler sample group name */ 59 #define IPATCH_GIG_DEFAULT_SAMPLE_GROUP_NAME "Default Sample Group" 60 61 GType ipatch_gig_get_type(void); 62 IpatchGig *ipatch_gig_new(void); 63 64 #endif 65