/usr/include/bse/bsebus.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 | /* BSE - Better Sound Engine
* Copyright (C) 2004 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_BUS_H__
#define __BSE_BUS_H__
#include <bse/bsesubsynth.h>
G_BEGIN_DECLS
/* --- object type macros --- */
#define BSE_TYPE_BUS (BSE_TYPE_ID (BseBus))
#define BSE_BUS(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), BSE_TYPE_BUS, BseBus))
#define BSE_BUS_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), BSE_TYPE_BUS, BseBusClass))
#define BSE_IS_BUS(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), BSE_TYPE_BUS))
#define BSE_IS_BUS_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), BSE_TYPE_BUS))
#define BSE_BUS_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), BSE_TYPE_BUS, BseBusClass))
/* --- BseBus source --- */
struct _BseBus
{
BseSubSynth parent_object;
SfiRing *inputs;
double left_volume;
double right_volume;
guint muted : 1;
guint synced : 1;
guint saved_sync : 1;
guint solo_muted : 1;
BseSource *summation;
BseSource *vin;
BseSource *bmodule; /* implicitely vout */
guint n_effects; /* # of slots */
BseSource **effects; /* slot maybe NULL */
SfiRing *bus_outputs; /* maintained by bsebus.[hc] */
};
struct _BseBusClass
{
BseSubSynthClass parent_class;
};
/* --- API --- */
BseErrorType bse_bus_connect (BseBus *self,
BseItem *item);
BseErrorType bse_bus_connect_unchecked (BseBus *self,
BseItem *item);
BseErrorType bse_bus_disconnect (BseBus *self,
BseItem *item);
SfiRing* bse_bus_list_inputs (BseBus *self);
SfiRing* bse_bus_list_outputs (BseBus *self);
gboolean bse_bus_get_stack (BseBus *self,
BseContainer **snet,
BseSource **vin,
BseSource **vout);
BseErrorType bse_bus_insert_slot (BseBus *self,
guint slot);
BseErrorType bse_bus_delete_slot (BseBus *self,
guint slot);
BseErrorType bse_bus_replace_effect (BseBus *self,
guint slot,
const gchar *etype);
void bse_bus_change_solo (BseBus *self,
gboolean solo_muted);
#define bse_bus_create_stack(b) bse_bus_get_stack (b,0,0,0)
void bse_bus_or_track_list_output_candidates (BseItem *trackbus,
BseItemSeq *iseq);
void bse_bus_or_track_set_outputs (BseItem *trackbus,
BseItemSeq *iseq);
/* --- channels --- */
enum
{
BSE_BUS_ICHANNEL_LEFT,
BSE_BUS_ICHANNEL_RIGHT,
BSE_BUS_N_ICHANNELS
};
enum
{
BSE_BUS_OCHANNEL_LEFT,
BSE_BUS_OCHANNEL_RIGHT,
BSE_BUS_N_OCHANNELS
};
G_END_DECLS
#endif /* __BSE_BUS_H__ */
|