~ubuntu-branches/debian/sid/bristol/sid

« back to all changes in this revision

Viewing changes to include/slab/bristolpulse.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2011-02-15 02:54:23 UTC
  • mfrom: (13.1.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20110215025423-g8hcla5gyl08mae3
Tags: 0.60.8-2
* Upload to unstable.
* Relax JACK's build-deps to let this build in sid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/*
 
3
 *  Diverse Bristol audio routines.
 
4
 *  Copyright (c) by Nick Copeland <nickycopeland@hotmail.com> 1996,2010
 
5
 *
 
6
 *
 
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.
 
11
 *
 
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.
 
16
 *
 
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/>.
 
19
 *
 
20
 */
 
21
 
 
22
//#define DEBUG
 
23
#ifdef BRISTOL_PA
 
24
#include <pulse/pulseaudio.h>
 
25
 
 
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)
 
30
 
 
31
#define BRISTOL_PULSE_CHAN_0    0
 
32
#define BRISTOL_PULSE_CHAN_1    1
 
33
 
 
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)
 
38
 
 
39
typedef struct PulseDev {
 
40
        pa_context *context;
 
41
        pa_stream *stream;
 
42
        pa_mainloop *loop;
 
43
        pa_mainloop_api *m_api;
 
44
        pa_threaded_mainloop *bLoop;
 
45
        pa_sample_spec sample_spec;
 
46
        pa_channel_map channel_map;
 
47
        char *stream_name;
 
48
        char *client_name;
 
49
        char *pa_device;
 
50
        char *server;
 
51
 
 
52
        float *outbuf, *inbuf;
 
53
        unsigned char *data;
 
54
 
 
55
        pa_buffer_attr attr;
 
56
 
 
57
        audioMain *audiomain;
 
58
        u_int64_t flags;
 
59
        const char **ports;
 
60
        int iocount;
 
61
} pulseDev;
 
62
 
 
63
#endif