/usr/include/bse/bseenums.h is in libbse-dev 0.7.4-4.
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 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | /* BSE - Better Sound Engine
* Copyright (C) 1998-2003 Tim Janik
*
* This library 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; either
* version 2.1 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
* Lesser General Public License for more details.
*
* A copy of the GNU Lesser General Public License should ship along
* with this library; if not, see http://www.gnu.org/copyleft/.
*
* bseenums.h: main portion of enum definitions in BSE and convenience functions
*/
#ifndef __BSE_ENUMS_H__
#define __BSE_ENUMS_H__
#include <bse/bsetype.h>
#include <bse/gsldefs.h>
G_BEGIN_DECLS
/* --- enum definitions --- */
typedef enum
{
BSE_REGISTER_PLUGIN = 1,
BSE_REGISTER_SCRIPT = 2,
BSE_REGISTER_DONE = 256
} BseRegistrationType;
typedef enum
{
BSE_INTERPOL_NONE, /*< nick=None >*/
BSE_INTERPOL_LINEAR, /*< nick=Linear >*/
BSE_INTERPOL_CUBIC /*< nick=Cubic >*/
} BseInterpolType;
typedef enum
{
BSE_LOOP_NONE,
BSE_LOOP_PATTERN,
BSE_LOOP_PATTERN_ROWS,
BSE_LOOP_SONG,
BSE_LOOP_LAST /*< skip >*/
} BseLoopType;
typedef enum
{
BSE_MAGIC_BSE_BIN_EXTENSION = 1 << 0,
BSE_MAGIC_BSE_SONG = 1 << 2
} BseMagicFlags;
typedef enum
{
BSE_ERROR_NONE = 0,
BSE_ERROR_INTERNAL,
BSE_ERROR_UNKNOWN,
/* general errors */
BSE_ERROR_IO,
BSE_ERROR_PERMS,
/* file errors */
BSE_ERROR_FILE_BUSY,
BSE_ERROR_FILE_EXISTS,
BSE_ERROR_FILE_EOF,
BSE_ERROR_FILE_EMPTY,
BSE_ERROR_FILE_NOT_FOUND,
BSE_ERROR_FILE_IS_DIR,
BSE_ERROR_FILE_OPEN_FAILED,
BSE_ERROR_FILE_SEEK_FAILED,
BSE_ERROR_FILE_READ_FAILED,
BSE_ERROR_FILE_WRITE_FAILED,
/* out of resource conditions */
BSE_ERROR_MANY_FILES,
BSE_ERROR_NO_FILES,
BSE_ERROR_NO_SPACE,
BSE_ERROR_NO_MEMORY,
/* content errors */
BSE_ERROR_NO_HEADER,
BSE_ERROR_NO_SEEK_INFO,
BSE_ERROR_NO_DATA,
BSE_ERROR_DATA_CORRUPT,
BSE_ERROR_WRONG_N_CHANNELS,
BSE_ERROR_FORMAT_INVALID,
BSE_ERROR_FORMAT_UNKNOWN,
BSE_ERROR_DATA_UNMATCHED,
/* miscellaneous errors */
BSE_ERROR_TEMP,
BSE_ERROR_WAVE_NOT_FOUND,
BSE_ERROR_CODEC_FAILURE,
BSE_ERROR_UNIMPLEMENTED,
BSE_ERROR_INVALID_PROPERTY,
BSE_ERROR_INVALID_MIDI_CONTROL,
BSE_ERROR_PARSE_ERROR,
BSE_ERROR_SPAWN,
/* Device errors */
BSE_ERROR_DEVICE_NOT_AVAILABLE,
BSE_ERROR_DEVICE_ASYNC,
BSE_ERROR_DEVICE_BUSY,
BSE_ERROR_DEVICE_FORMAT,
BSE_ERROR_DEVICE_BUFFER,
BSE_ERROR_DEVICE_LATENCY,
BSE_ERROR_DEVICE_CHANNELS,
BSE_ERROR_DEVICE_FREQUENCY,
BSE_ERROR_DEVICES_MISMATCH,
/* BseSource errors */
BSE_ERROR_SOURCE_NO_SUCH_MODULE,
BSE_ERROR_SOURCE_NO_SUCH_ICHANNEL,
BSE_ERROR_SOURCE_NO_SUCH_OCHANNEL,
BSE_ERROR_SOURCE_NO_SUCH_CONNECTION,
BSE_ERROR_SOURCE_PRIVATE_ICHANNEL,
BSE_ERROR_SOURCE_ICHANNEL_IN_USE,
BSE_ERROR_SOURCE_CHANNELS_CONNECTED,
BSE_ERROR_SOURCE_CONNECTION_INVALID,
BSE_ERROR_SOURCE_PARENT_MISMATCH,
BSE_ERROR_SOURCE_BAD_LOOPBACK,
BSE_ERROR_SOURCE_BUSY,
BSE_ERROR_SOURCE_TYPE_INVALID,
/* BseProcedure errors */
BSE_ERROR_PROC_NOT_FOUND,
BSE_ERROR_PROC_BUSY,
BSE_ERROR_PROC_PARAM_INVAL,
BSE_ERROR_PROC_EXECUTION,
BSE_ERROR_PROC_ABORT,
/* various procedure errors */
BSE_ERROR_NO_ENTRY,
BSE_ERROR_NO_EVENT,
BSE_ERROR_NO_TARGET,
BSE_ERROR_NOT_OWNER,
BSE_ERROR_INVALID_OFFSET,
BSE_ERROR_INVALID_DURATION,
BSE_ERROR_INVALID_OVERLAP,
} BseErrorType;
/* --- convenience functions --- */
const gchar* bse_error_name (BseErrorType error_value);
const gchar* bse_error_nick (BseErrorType error_value);
const gchar* bse_error_blurb (BseErrorType error_value);
BseErrorType bse_error_from_errno (gint v_errno,
BseErrorType fallback);
#define bse_assert_ok(error) G_STMT_START{ \
if G_UNLIKELY (error) \
{ \
g_log (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, \
"%s:%d: unexpected error: %s", \
__FILE__, __LINE__, bse_error_blurb (error)); \
} \
}G_STMT_END
G_END_DECLS
#endif /* __BSE_ENUMS_H__ */
|