![]() |
![]() |
![]() |
Buzztard Bt-Core Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
BtSinkBinBtSinkBin — bin to be used by BtSinkMachine |
#include <libbtcore/core.h> struct BtSinkBin; enum BtSinkBinMode; enum BtSinkBinRecordFormat;
The sink-bin provides switchable play and record facillities. It also provides controlable master-volume.
struct BtSinkBin { const GstBin parent; };
Sub-class of a GstBin that implements a signal output (a machine with inputs only).
typedef enum { BT_SINK_BIN_MODE_PLAY=0, BT_SINK_BIN_MODE_RECORD, BT_SINK_BIN_MODE_PLAY_AND_RECORD } BtSinkBinMode;
BtSinkMachine supports several modes of operation. Playing is the default mode.
typedef enum { BT_SINK_BIN_RECORD_FORMAT_OGG_VORBIS=0, BT_SINK_BIN_RECORD_FORMAT_MP3, BT_SINK_BIN_RECORD_FORMAT_WAV, BT_SINK_BIN_RECORD_FORMAT_OGG_FLAC, BT_SINK_BIN_RECORD_FORMAT_RAW } BtSinkBinRecordFormat;
BtSinkMachine can record audio in several formats.