/usr/include/libinstpatch-1.0/libinstpatch/IpatchSF2Reader.h is in libinstpatch-dev 1.0.0-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | /*
* libInstPatch
* Copyright (C) 1999-2010 Joshua "Element" Green <jgreen@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1
* of the License only.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA or on the web at http://www.gnu.org.
*/
/**
* SECTION: IpatchSF2Reader
* @short_description: SoundFont file reader
* @see_also:
* @stability: Stable
*
* Reads a SoundFont file and loads it into a object tree (#IpatchSF2).
*/
#ifndef __IPATCH_SF2_READER_H__
#define __IPATCH_SF2_READER_H__
#include <glib.h>
#include <libinstpatch/IpatchSF2File.h>
#include <libinstpatch/IpatchSF2Gen.h>
#include <libinstpatch/IpatchSF2Mod.h>
#include <libinstpatch/IpatchRiff.h>
#include <libinstpatch/IpatchSF2.h>
typedef struct _IpatchSF2Reader IpatchSF2Reader; /* private structure */
typedef struct _IpatchSF2ReaderClass IpatchSF2ReaderClass;
#define IPATCH_TYPE_SF2_READER (ipatch_sf2_reader_get_type ())
#define IPATCH_SF2_READER(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), IPATCH_TYPE_SF2_READER, \
IpatchSF2Reader))
#define IPATCH_SF2_READER_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), IPATCH_TYPE_SF2_READER, \
IpatchSF2ReaderClass))
#define IPATCH_IS_SF2_READER(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), IPATCH_TYPE_SF2_READER))
#define IPATCH_IS_SF2_READER_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), IPATCH_TYPE_SF2_READER))
/* SoundFont parser object */
struct _IpatchSF2Reader
{
IpatchRiff parent_instance; /* derived from IpatchRiff */
IpatchSF2 *sf; /* SoundFont object to load file into */
/*< private >*/
guint16 *pbag_table;
guint pbag_count;
guint16 *ibag_table;
guint ibag_count;
IpatchSF2Inst **inst_table;
guint inst_count;
IpatchSF2Sample **sample_table;
guint sample_count;
};
/* RIFF parser class */
struct _IpatchSF2ReaderClass
{
IpatchRiffClass parent_class;
};
GType ipatch_sf2_reader_get_type (void);
IpatchSF2Reader *ipatch_sf2_reader_new (IpatchFileHandle *handle);
void ipatch_sf2_reader_set_file_handle (IpatchSF2Reader *reader,
IpatchFileHandle *handle);
IpatchSF2 *ipatch_sf2_reader_load (IpatchSF2Reader *reader, GError **err);
void ipatch_sf2_load_phdr (IpatchFileHandle *handle, IpatchSF2Phdr *phdr);
void ipatch_sf2_load_ihdr (IpatchFileHandle *handle, IpatchSF2Ihdr *ihdr);
void ipatch_sf2_load_shdr (IpatchFileHandle *handle, IpatchSF2Shdr *shdr);
void ipatch_sf2_load_bag (IpatchFileHandle *handle, IpatchSF2Bag *bag);
void ipatch_sf2_load_mod (IpatchFileHandle *handle, IpatchSF2Mod *mod);
void ipatch_sf2_load_gen (IpatchFileHandle *handle, int *genid,
IpatchSF2GenAmount *amount);
#endif
|