3
* Diverse Bristol audio routines.
4
* Copyright (c) by Nick Copeland <nickycopeland@hotmail.com> 1996,2010
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 3 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, see <http://www.gnu.org/licenses/>.
24
#include <pulse/pulseaudio.h>
26
#define BRISTOL_PULSE_STARTED 0x0001
27
/* 2 legacy plus 16 multiIO */
28
#define BRISTOL_PULSE_MULTI 0
29
#define BRISTOL_PULSE_PORTS (2 + BRISTOL_PULSE_MULTI)
31
#define BRISTOL_PULSE_CHAN_0 0
32
#define BRISTOL_PULSE_CHAN_1 1
34
#define BRISTOL_PULSE_STDINL BRISTOL_PULSE_MULTI
35
#define BRISTOL_PULSE_STDINR (BRISTOL_PULSE_MULTI + 1)
36
#define BRISTOL_PULSE_STDOUTL BRISTOL_PULSE_MULTI
37
#define BRISTOL_PULSE_STDOUTR (BRISTOL_PULSE_MULTI + 1)
39
typedef struct PulseDev {
43
pa_mainloop_api *m_api;
44
pa_threaded_mainloop *bLoop;
45
pa_sample_spec sample_spec;
46
pa_channel_map channel_map;
52
float *outbuf, *inbuf;