/usr/include/libbml/BuzzMachineLoader.h is in libbml-dev 0.6.1-1.
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 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | /* $Id: BuzzMachineLoader.h 2457 2009-06-03 21:58:45Z ensonic $
*
* Buzz Machine Loader
* Copyright (C) 2006 Buzztard team <buzztard-devel@lists.sf.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef BUZZ_MACHINE_LOADER_H
#define BUZZ_MACHINE_LOADER_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _CHostCallbacks CHostCallbacks;
struct _CHostCallbacks {
void *user_data;
/* callbacks */
void const *(*GetWave)(CHostCallbacks *self, int const i);
void const *(*GetWaveLevel)(CHostCallbacks *self, int const i, int const level);
void const *(*GetNearestWaveLevel)(CHostCallbacks *self, int const i, int const note);
/* add more */
};
#ifdef BUZZ_MACHINE_LOADER
typedef CMachineInfo* (*GetInfoPtr)();
typedef CMachineInterface *(*CreateMachinePtr)();
class BuzzMachine;
// machine library handle
class BuzzMachineHandle {
public:
// library handle
void *h;
char *lib_name;
// machine info
CMachineInfo *machine_info;
int mdk_num_channels;
// functions
CreateMachinePtr CreateMachine;
// dummy machine instance, so that we can call DescribeValue
BuzzMachine *bm;
};
// machine instance handle
class BuzzMachine {
public:
/* FIXME: what about adding a 4 byte cookie here
* which bm_new() could set and
* a macro BM_IS_BM(bm) could check
*/
// library handle
BuzzMachineHandle *bmh;
// callback instance
CMICallbacks *callbacks;
// classes
CMachineInfo *machine_info;
CMachineInterface *machine_iface;
CMachine *machine;
CMDKImplementation *mdkHelper;
CHostCallbacks *host_callbacks;
//callbacks->machine_ex;
//CMachineInterfaceEx *machine_ex;
};
#else
typedef void BuzzMachineHandle;
typedef void BuzzMachine;
#endif
typedef enum {
BM_PROP_TYPE=0,
BM_PROP_VERSION,
BM_PROP_FLAGS,
BM_PROP_MIN_TRACKS,
BM_PROP_MAX_TRACKS,
BM_PROP_NUM_GLOBAL_PARAMS,
BM_PROP_NUM_TRACK_PARAMS,
BM_PROP_NUM_ATTRIBUTES,
BM_PROP_NAME,
BM_PROP_SHORT_NAME,
BM_PROP_AUTHOR,
BM_PROP_COMMANDS,
BM_PROP_DLL_NAME,
BM_PROP_NUM_INPUT_CHANNELS,
BM_PROP_NUM_OUTPUT_CHANNELS
} BuzzMachineProperty;
typedef enum {
BM_PARA_TYPE=0,
BM_PARA_NAME,
BM_PARA_DESCRIPTION,
BM_PARA_MIN_VALUE,
BM_PARA_MAX_VALUE,
BM_PARA_NO_VALUE,
BM_PARA_FLAGS,
BM_PARA_DEF_VALUE
} BuzzMachineParameter;
typedef enum {
BM_ATTR_NAME=0,
BM_ATTR_MIN_VALUE,
BM_ATTR_MAX_VALUE,
BM_ATTR_DEF_VALUE
} BuzzMachineAttribute;
#ifdef __cplusplus
}
#endif
#endif // BUZZ_MACHINE_LOADER_H
|