comparison src/OSS4/OSS4.h @ 1214:2a722c3ccd9e

damn, I forgot to 'hg add' the sources Enjoy OSS4!
author Cristi Magherusan <majeru@atheme-project.org>
date Sat, 07 Jul 2007 05:02:14 +0300
parents
children d0f1e147cf62
comparison
equal deleted inserted replaced
1213:e49e02828f85 1214:2a722c3ccd9e
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 */
21
22 #ifndef OSS4_H
23 #define OSS4_H
24
25 #ifdef HAVE_CONFIG_H
26 # include "config.h"
27 #endif
28
29 #ifdef HAVE_SYS_SOUNDCARD_H
30 #include <sys/soundcard.h>
31 #else
32 #include <soundcard.h>
33 #endif
34
35 #include "audacious/plugin.h"
36 #include <glib.h>
37
38 #define IS_BIG_ENDIAN (G_BYTE_ORDER == G_BIG_ENDIAN)
39
40 extern OutputPlugin op;
41
42 typedef struct {
43 gint audio_device;
44 gint mixer_device;
45 gint buffer_size;
46 gint prebuffer;
47 gboolean use_master,use_vmix;
48 gboolean use_alt_audio_device, use_alt_mixer_device;
49 gchar *alt_audio_device, *alt_mixer_device;
50 } OSSConfig;
51
52 extern OSSConfig oss_cfg;
53
54 void oss_init(void);
55 void oss_cleanup(void);
56 void oss_about(void);
57 void oss_configure(void);
58
59 void oss_get_volume(int *l, int *r);
60 void oss_set_volume(int l, int r);
61
62 int oss_playing(void);
63 int oss_free(void);
64 void oss_write(void *ptr, int length);
65 void oss_close(void);
66 void oss_flush(int time);
67 void oss_pause(short p);
68 int oss_open(AFormat fmt, int rate, int nch);
69 int oss_get_output_time(void);
70 int oss_get_written_time(void);
71 void oss_set_audio_params(void);
72
73 void oss_free_convert_buffer(void);
74 int (*oss_get_convert_func(int output, int input)) (void **, int);
75 int (*oss_get_stereo_convert_func(int output, int input)) (void **, int,
76 int);
77
78 void oss_tell(AFormat * fmt, gint * rate, gint * nch);
79
80 #endif