source: roaraudio/roard/include/driver_alsa.h @ 5823:f9f70dbaa376

Last change on this file since 5823:f9f70dbaa376 was 5823:f9f70dbaa376, checked in by phi, 11 years ago

updated copyright

File size: 1.7 KB
Line 
1//driver_alsa.h:
2
3/*
4 *      Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008-2013
5 *      Copyright (C) Hans-Kristian 'maister' Arntzen - 2010
6 *
7 *  This file is part of roard a part of RoarAudio,
8 *  a cross-platform sound system for both, home and professional use.
9 *  See README for details.
10 *
11 *  This file is free software; you can redistribute it and/or modify
12 *  it under the terms of the GNU General Public License version 3
13 *  as published by the Free Software Foundation.
14 *
15 *  RoarAudio is distributed in the hope that it will be useful,
16 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 *  GNU General Public License for more details.
19 *
20 *  You should have received a copy of the GNU General Public License
21 *  along with this software; see the file COPYING.  If not, write to
22 *  the Free Software Foundation, 51 Franklin Street, Fifth Floor,
23 *  Boston, MA 02110-1301, USA.
24 *
25 */
26
27#ifndef _DRIVER_ALSA_H_
28#define _DRIVER_ALSA_H_
29
30typedef struct roar_alsa {
31 snd_pcm_t * handle;
32 snd_pcm_hw_params_t * params;
33 snd_pcm_format_t format;
34 struct roar_audio_info info;
35 struct roar_stream_server * sstream;
36 int ssid;
37} roar_alsa_t;
38
39int     driver_alsa_open_vio(struct roar_vio_calls * inst, char * device, struct roar_audio_info * info, int fh, struct roar_stream_server * sstream);
40ssize_t driver_alsa_write   (struct roar_vio_calls * vio, void *buf, size_t count);
41int     driver_alsa_close   (struct roar_vio_calls * vio);
42int     driver_alsa_sync    (struct roar_vio_calls * vio);
43int     driver_alsa_ctl     (struct roar_vio_calls * vio, roar_vio_ctl_t cmd, void * data);
44
45#endif
46
47//ll
Note: See TracBrowser for help on using the repository browser.