1 | //roar.h: |
---|
2 | |
---|
3 | /* |
---|
4 | * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2010 |
---|
5 | * |
---|
6 | * This file is part of libroar a part of RoarAudio, |
---|
7 | * a cross-platform sound system for both, home and professional use. |
---|
8 | * See README for details. |
---|
9 | * |
---|
10 | * This file is free software; you can redistribute it and/or modify |
---|
11 | * it under the terms of the GNU General Public License version 3 |
---|
12 | * as published by the Free Software Foundation. |
---|
13 | * |
---|
14 | * libroar is distributed in the hope that it will be useful, |
---|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
17 | * GNU General Public License for more details. |
---|
18 | * |
---|
19 | * You should have received a copy of the GNU General Public License |
---|
20 | * along with this software; see the file COPYING. If not, write to |
---|
21 | * the Free Software Foundation, 51 Franklin Street, Fifth Floor, |
---|
22 | * Boston, MA 02110-1301, USA. |
---|
23 | * |
---|
24 | * NOTE for everyone want's to change something and send patches: |
---|
25 | * read README and HACKING! There a addition information on |
---|
26 | * the license of this document you need to read before you send |
---|
27 | * any patches. |
---|
28 | * |
---|
29 | */ |
---|
30 | |
---|
31 | #ifndef _ROARAUDIO_PLUGINS_ALSA_ROAR_H_ |
---|
32 | #define _ROARAUDIO_PLUGINS_ALSA_ROAR_H_ |
---|
33 | |
---|
34 | #include <roaraudio.h> |
---|
35 | #include <errno.h> |
---|
36 | #include <alsa/asoundlib.h> |
---|
37 | #include <alsa/global.h> |
---|
38 | #include <alsa/pcm_external.h> |
---|
39 | #include <alsa/control_external.h> |
---|
40 | |
---|
41 | #define _as(x) (sizeof((x))/sizeof(*(x))) |
---|
42 | |
---|
43 | struct roar_alsa { |
---|
44 | struct roar_connection con; |
---|
45 | }; |
---|
46 | |
---|
47 | struct roar_alsa_pcm { |
---|
48 | snd_pcm_ioplug_t io; |
---|
49 | struct roar_alsa roar; |
---|
50 | struct roar_audio_info info; |
---|
51 | struct roar_stream stream; |
---|
52 | struct roar_vio_calls stream_vio; |
---|
53 | int stream_opened; |
---|
54 | size_t writec; |
---|
55 | }; |
---|
56 | |
---|
57 | #endif |
---|
58 | |
---|
59 | //ll |
---|