mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 20:11:51 +00:00
61 lines
2.3 KiB
C
61 lines
2.3 KiB
C
/*
|
|
* libInstPatch
|
|
* Copyright (C) 1999-2014 Element Green <element@elementsofsound.org>
|
|
*
|
|
* 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.
|
|
*/
|
|
#ifndef __IPATCH_SAMPLE_STORE_SPLIT24_H__
|
|
#define __IPATCH_SAMPLE_STORE_SPLIT24_H__
|
|
|
|
#include <glib.h>
|
|
#include <glib-object.h>
|
|
#include <libinstpatch/IpatchFile.h>
|
|
#include <libinstpatch/IpatchSampleStoreFile.h>
|
|
|
|
/* forward type declarations */
|
|
|
|
typedef struct _IpatchSampleStoreSplit24 IpatchSampleStoreSplit24;
|
|
typedef struct _IpatchSampleStoreSplit24Class IpatchSampleStoreSplit24Class;
|
|
|
|
#define IPATCH_TYPE_SAMPLE_STORE_SPLIT24 (ipatch_sample_store_split24_get_type ())
|
|
#define IPATCH_SAMPLE_STORE_SPLIT24(obj) \
|
|
(G_TYPE_CHECK_INSTANCE_CAST ((obj), IPATCH_TYPE_SAMPLE_STORE_SPLIT24, \
|
|
IpatchSampleStoreSplit24))
|
|
#define IPATCH_SAMPLE_STORE_SPLIT24_CLASS(klass) \
|
|
(G_TYPE_CHECK_CLASS_CAST ((klass), IPATCH_TYPE_SAMPLE_STORE_SPLIT24, \
|
|
IpatchSampleStoreSplit24Class))
|
|
#define IPATCH_IS_SAMPLE_STORE_SPLIT24(obj) \
|
|
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), IPATCH_TYPE_SAMPLE_STORE_SPLIT24))
|
|
#define IPATCH_IS_SAMPLE_STORE_SPLIT24_CLASS(klass) \
|
|
(G_TYPE_CHECK_CLASS_TYPE ((klass), IPATCH_TYPE_SAMPLE_STORE_SPLIT24))
|
|
|
|
/* File sample store instance */
|
|
struct _IpatchSampleStoreSplit24
|
|
{
|
|
IpatchSampleStoreFile parent_instance;
|
|
guint loc_lsbytes; /* pos of the least significant bytes of 24 bit audio */
|
|
};
|
|
|
|
/* File sample store class */
|
|
struct _IpatchSampleStoreSplit24Class
|
|
{
|
|
IpatchSampleStoreFileClass parent_class;
|
|
};
|
|
|
|
GType ipatch_sample_store_split24_get_type(void);
|
|
IpatchSample *ipatch_sample_store_split24_new(IpatchFile *file,
|
|
guint loc_16bit, guint loc_lsbytes);
|
|
#endif
|