comparison src/alsa-ng/alsa-types.h @ 3162:e387614b9be9

alsa-ng: Import rewritten ALSA plugin. This is still woefully incomplete, but supports basic playback. This driver uses the "safe" ALSA API subset, including use of blocking I/O. Right now, it is hardcoded to use "default". Do not complain about bugs in this plugin.
author William Pitcock <nenolod@atheme.org>
date Thu, 14 May 2009 21:05:11 -0500
parents
children d1d9b159801a
comparison
equal deleted inserted replaced
3161:6dd886b5c72b 3162:e387614b9be9
1 /*
2 * Audacious ALSA Plugin (-ng)
3 * Copyright (c) 2009 William Pitcock <nenolod@dereferenced.org>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19
20 #ifndef _ALSA_TYPES_H_GUARD
21 #define _ALSA_TYPES_H_GUARD
22
23 #include "alsa-stdinc.h"
24
25 typedef struct {
26 AFormat aud_fmt;
27 snd_pcm_format_t alsa_fmt;
28 } alsaplug_format_mapping_t;
29
30 extern snd_pcm_format_t alsaplug_format_convert(AFormat aud_fmt);
31
32 #endif