Mercurial > audlegacy
comparison Plugins/Output/OSS/OSS.h @ 61:fa848bd484d8 trunk
[svn] Move plugins to Plugins/
author | nenolod |
---|---|
date | Fri, 28 Oct 2005 22:58:11 -0700 |
parents | |
children | 55dc40ff1aff |
comparison
equal
deleted
inserted
replaced
60:1771f253e1b2 | 61:fa848bd484d8 |
---|---|
1 /* BMP - Cross-platform multimedia player | |
2 * Copyright (C) 2003-2004 BMP development team. | |
3 * | |
4 * Based on XMMS: | |
5 * Copyright (C) 1998-2003 XMMS development team. | |
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 2 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, write to the Free Software | |
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
20 */ | |
21 | |
22 #ifndef OSS_H | |
23 #define OSS_H | |
24 | |
25 #ifdef HAVE_CONFIG_H | |
26 # include "config.h" | |
27 #endif | |
28 | |
29 #include <glib.h> | |
30 | |
31 #include "soundcard.h" | |
32 #include "audacious/plugin.h" | |
33 | |
34 #define IS_BIG_ENDIAN (G_BYTE_ORDER == G_BIG_ENDIAN) | |
35 | |
36 extern OutputPlugin op; | |
37 | |
38 typedef struct { | |
39 gint audio_device; | |
40 gint mixer_device; | |
41 gint buffer_size; | |
42 gint prebuffer; | |
43 gboolean use_master; | |
44 gboolean use_alt_audio_device, use_alt_mixer_device; | |
45 gchar *alt_audio_device, *alt_mixer_device; | |
46 } OSSConfig; | |
47 | |
48 extern OSSConfig oss_cfg; | |
49 | |
50 void oss_init(void); | |
51 void oss_about(void); | |
52 void oss_configure(void); | |
53 | |
54 void oss_get_volume(int *l, int *r); | |
55 void oss_set_volume(int l, int r); | |
56 | |
57 int oss_playing(void); | |
58 int oss_free(void); | |
59 void oss_write(void *ptr, int length); | |
60 void oss_close(void); | |
61 void oss_flush(int time); | |
62 void oss_pause(short p); | |
63 int oss_open(AFormat fmt, int rate, int nch); | |
64 int oss_get_output_time(void); | |
65 int oss_get_written_time(void); | |
66 void oss_set_audio_params(void); | |
67 | |
68 void oss_free_convert_buffer(void); | |
69 int (*oss_get_convert_func(int output, int input)) (void **, int); | |
70 int (*oss_get_stereo_convert_func(int output, int input)) (void **, int, | |
71 int); | |
72 | |
73 #endif |