/usr/include/bse/bsemain.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 | /* BSE - Better Sound Engine
* Copyright (C) 1997-1999, 2000-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/.
*/
#ifndef __BSE_MAIN_H__
#define __BSE_MAIN_H__
#include <bse/bse.h> /* initialization */
#include <bse/bsetype.h>
G_BEGIN_DECLS
/* --- initialization --- */
void bse_init_textdomain_only (void);
#if 0 // prototyped in bse.h */
void bse_init_async (gint *argc,
gchar ***argv,
const char *app_name,
SfiInitValue values[]);
SfiGlueContext* bse_init_glue_context (const gchar *client);
const char* bse_check_version (guint required_major,
guint required_minor,
guint required_micro);
#endif
/* initialization for internal utilities */
void bse_init_inprocess (gint *argc,
gchar ***argv,
const char *app_name,
SfiInitValue values[]);
void bse_init_test (gint *argc,
gchar ***argv,
SfiInitValue values[]);
/* BSE thread pid (or 0) */
guint bse_main_getpid (void);
/* messaging */
void bse_message_setup_thread_handler (void);
void bse_message_to_default_handler (const BseMessage *msg);
/* --- global macros --- */
#define BSE_THREADS_ENTER() // bse_main_global_lock ()
#define BSE_THREADS_LEAVE() // bse_main_global_unlock ()
#define BSE_SEQUENCER_LOCK() sfi_mutex_lock (&bse_main_sequencer_mutex)
#define BSE_SEQUENCER_UNLOCK() sfi_mutex_unlock (&bse_main_sequencer_mutex)
#define BSE_DBG_EXT (bse_main_args->debug_extensions != FALSE)
#define BSE_CONFIG(field) (bse_main_args->field)
/* --- argc/argv overide settings --- */
typedef struct {
BirnetInitSettings birnet;
guint n_processors;
/* # values to pad around wave chunk blocks per channel */
guint wave_chunk_padding;
guint wave_chunk_big_pad;
/* data (file) cache block size (aligned to power of 2) */
guint dcache_block_size;
/* amount of bytes to spare for memory cache */
guint dcache_cache_memory;
guint midi_kammer_note;
/* kammer frequency, normally 440Hz, historically 435Hz */
gfloat kammer_freq;
const gchar *path_binaries;
const gchar *bse_rcfile;
const gchar *override_plugin_globs;
const gchar *override_script_path;
const gchar *override_sample_path;
bool allow_randomization; /* init-value "allow-randomization" - enables non-deterministic behavior */
bool force_fpu; /* init-value "force-fpu" */
bool load_core_plugins; /* init-value "load-core-plugins" */
bool load_core_scripts; /* init-value "load-core-scripts" */
bool debug_extensions; /* init-value "debug-extensions" */
bool load_drivers_early;
bool dump_driver_list;
int latency;
int mixing_freq;
int control_freq;
SfiRing *pcm_drivers;
SfiRing *midi_drivers;
} BseMainArgs;
/* --- debuging channels --- */
typedef struct {
SfiDebugChannel *sequencer; /* --bse-trace-sequencer */
} BseTraceArgs;
/* --- internal --- */
void _bse_init_c_wrappers ();
extern BseMainArgs *bse_main_args;
extern BseTraceArgs bse_trace_args;
extern GMainContext *bse_main_context;
extern BirnetMutex bse_main_sequencer_mutex;
extern BirnetThread *bse_main_thread;
G_END_DECLS
#endif /* __BSE_MAIN_H__ */
|