annotate libao2/audio_out.c @ 3353:7894c75f66ce

similar to 1.15
author jaf
date Thu, 06 Dec 2001 19:14:05 +0000
parents e279cc05f189
children 492df9b2b1cf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
954
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
1 #include <stdio.h>
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
2 #include <stdlib.h>
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
3
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
4 #include "../config.h"
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
5 #include "audio_out.h"
1058
cab5ba9ffc6c fixed AFMT_ stuff (inclue afmt.h)
arpi_esp
parents: 1047
diff changeset
6 #include "afmt.h"
1038
b36fb1ae4b53 applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents: 1032
diff changeset
7
954
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
8 // there are some globals:
3095
981a9e5118ce interface to libao2 changed ao_plugin added
anders
parents: 2900
diff changeset
9 ao_data_t ao_data={0,0,0,0,OUTBURST,-1,0};
1185
e21c96e28062 ao_subdevice implemented
al3x
parents: 1121
diff changeset
10 char *ao_subdevice = NULL;
954
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
11
1038
b36fb1ae4b53 applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents: 1032
diff changeset
12 #ifdef USE_OSS_AUDIO
954
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
13 extern ao_functions_t audio_out_oss;
1038
b36fb1ae4b53 applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents: 1032
diff changeset
14 #endif
954
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
15 extern ao_functions_t audio_out_null;
1007
e2de3386725f fixed HAVE_ALSA5 var. bug. sorry :(
pontscho
parents: 995
diff changeset
16 #ifdef HAVE_ALSA5
e2de3386725f fixed HAVE_ALSA5 var. bug. sorry :(
pontscho
parents: 995
diff changeset
17 extern ao_functions_t audio_out_alsa5;
e2de3386725f fixed HAVE_ALSA5 var. bug. sorry :(
pontscho
parents: 995
diff changeset
18 #endif
1032
e34336f4feaf add esd support and disabled default.
pontscho
parents: 1007
diff changeset
19 #ifdef HAVE_ALSA9
e34336f4feaf add esd support and disabled default.
pontscho
parents: 1007
diff changeset
20 extern ao_functions_t audio_out_alsa9;
e34336f4feaf add esd support and disabled default.
pontscho
parents: 1007
diff changeset
21 #endif
e34336f4feaf add esd support and disabled default.
pontscho
parents: 1007
diff changeset
22 #ifdef HAVE_ESD
e34336f4feaf add esd support and disabled default.
pontscho
parents: 1007
diff changeset
23 extern ao_functions_t audio_out_esd;
e34336f4feaf add esd support and disabled default.
pontscho
parents: 1007
diff changeset
24 #endif
3276
e279cc05f189 -ao NAS support by Tobias Diedrich <ranma@gmx.at>
arpi
parents: 3095
diff changeset
25 #ifdef HAVE_NAS
e279cc05f189 -ao NAS support by Tobias Diedrich <ranma@gmx.at>
arpi
parents: 3095
diff changeset
26 extern ao_functions_t audio_out_nas;
e279cc05f189 -ao NAS support by Tobias Diedrich <ranma@gmx.at>
arpi
parents: 3095
diff changeset
27 #endif
966
69b4f944ce08 Added support for sdl audio out (buggy pre-alpha).
atmosfear
parents: 954
diff changeset
28 #ifdef HAVE_SDL
69b4f944ce08 Added support for sdl audio out (buggy pre-alpha).
atmosfear
parents: 954
diff changeset
29 extern ao_functions_t audio_out_sdl;
69b4f944ce08 Added support for sdl audio out (buggy pre-alpha).
atmosfear
parents: 954
diff changeset
30 #endif
1038
b36fb1ae4b53 applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents: 1032
diff changeset
31 #ifdef USE_SUN_AUDIO
b36fb1ae4b53 applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents: 1032
diff changeset
32 extern ao_functions_t audio_out_sun;
b36fb1ae4b53 applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents: 1032
diff changeset
33 #endif
2450
f51307170f69 MIPS support by oliver.schoenbrunner@jku.at
arpi
parents: 1725
diff changeset
34 #ifdef USE_SGI_AUDIO
f51307170f69 MIPS support by oliver.schoenbrunner@jku.at
arpi
parents: 1725
diff changeset
35 extern ao_functions_t audio_out_sgi;
f51307170f69 MIPS support by oliver.schoenbrunner@jku.at
arpi
parents: 1725
diff changeset
36 #endif
2645
9d8d69fc517c ao_dxr3 by David Holm <dholm@telia.com>
arpi
parents: 2450
diff changeset
37 #ifdef HAVE_DXR3
9d8d69fc517c ao_dxr3 by David Holm <dholm@telia.com>
arpi
parents: 2450
diff changeset
38 extern ao_functions_t audio_out_dxr3;
9d8d69fc517c ao_dxr3 by David Holm <dholm@telia.com>
arpi
parents: 2450
diff changeset
39 #endif
1107
9d764880d989 Added raw PCM writer ao driver.
atmosfear
parents: 1058
diff changeset
40 extern ao_functions_t audio_out_pcm;
2708
b24661a9924e ao_mpegpes
arpi
parents: 2645
diff changeset
41 extern ao_functions_t audio_out_mpegpes;
1185
e21c96e28062 ao_subdevice implemented
al3x
parents: 1121
diff changeset
42 extern ao_functions_t audio_out_pss;
3095
981a9e5118ce interface to libao2 changed ao_plugin added
anders
parents: 2900
diff changeset
43 extern ao_functions_t audio_out_plugin;
954
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
44
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
45 ao_functions_t* audio_out_drivers[] =
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
46 {
1038
b36fb1ae4b53 applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents: 1032
diff changeset
47 #ifdef USE_OSS_AUDIO
954
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
48 &audio_out_oss,
1038
b36fb1ae4b53 applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents: 1032
diff changeset
49 #endif
1725
24e75b632740 Move the sun audio driver near the start of the list of audio drivers, so
jkeil
parents: 1528
diff changeset
50 #ifdef USE_SUN_AUDIO
24e75b632740 Move the sun audio driver near the start of the list of audio drivers, so
jkeil
parents: 1528
diff changeset
51 &audio_out_sun,
24e75b632740 Move the sun audio driver near the start of the list of audio drivers, so
jkeil
parents: 1528
diff changeset
52 #endif
2450
f51307170f69 MIPS support by oliver.schoenbrunner@jku.at
arpi
parents: 1725
diff changeset
53 #ifdef USE_SGI_AUDIO
f51307170f69 MIPS support by oliver.schoenbrunner@jku.at
arpi
parents: 1725
diff changeset
54 &audio_out_sgi,
f51307170f69 MIPS support by oliver.schoenbrunner@jku.at
arpi
parents: 1725
diff changeset
55 #endif
954
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
56 &audio_out_null,
1007
e2de3386725f fixed HAVE_ALSA5 var. bug. sorry :(
pontscho
parents: 995
diff changeset
57 #ifdef HAVE_ALSA5
995
4f94faa145c1 add alsa support by al3x
pontscho
parents: 966
diff changeset
58 &audio_out_alsa5,
1007
e2de3386725f fixed HAVE_ALSA5 var. bug. sorry :(
pontscho
parents: 995
diff changeset
59 #endif
1032
e34336f4feaf add esd support and disabled default.
pontscho
parents: 1007
diff changeset
60 #ifdef HAVE_ALSA9
e34336f4feaf add esd support and disabled default.
pontscho
parents: 1007
diff changeset
61 &audio_out_alsa9,
e34336f4feaf add esd support and disabled default.
pontscho
parents: 1007
diff changeset
62 #endif
e34336f4feaf add esd support and disabled default.
pontscho
parents: 1007
diff changeset
63 #ifdef HAVE_ESD
e34336f4feaf add esd support and disabled default.
pontscho
parents: 1007
diff changeset
64 &audio_out_esd,
e34336f4feaf add esd support and disabled default.
pontscho
parents: 1007
diff changeset
65 #endif
3276
e279cc05f189 -ao NAS support by Tobias Diedrich <ranma@gmx.at>
arpi
parents: 3095
diff changeset
66 #ifdef HAVE_NAS
e279cc05f189 -ao NAS support by Tobias Diedrich <ranma@gmx.at>
arpi
parents: 3095
diff changeset
67 &audio_out_nas,
e279cc05f189 -ao NAS support by Tobias Diedrich <ranma@gmx.at>
arpi
parents: 3095
diff changeset
68 #endif
966
69b4f944ce08 Added support for sdl audio out (buggy pre-alpha).
atmosfear
parents: 954
diff changeset
69 #ifdef HAVE_SDL
69b4f944ce08 Added support for sdl audio out (buggy pre-alpha).
atmosfear
parents: 954
diff changeset
70 &audio_out_sdl,
69b4f944ce08 Added support for sdl audio out (buggy pre-alpha).
atmosfear
parents: 954
diff changeset
71 #endif
2645
9d8d69fc517c ao_dxr3 by David Holm <dholm@telia.com>
arpi
parents: 2450
diff changeset
72 #ifdef HAVE_DXR3
9d8d69fc517c ao_dxr3 by David Holm <dholm@telia.com>
arpi
parents: 2450
diff changeset
73 &audio_out_dxr3,
9d8d69fc517c ao_dxr3 by David Holm <dholm@telia.com>
arpi
parents: 2450
diff changeset
74 #endif
1107
9d764880d989 Added raw PCM writer ao driver.
atmosfear
parents: 1058
diff changeset
75 &audio_out_pcm,
2708
b24661a9924e ao_mpegpes
arpi
parents: 2645
diff changeset
76 &audio_out_mpegpes,
3095
981a9e5118ce interface to libao2 changed ao_plugin added
anders
parents: 2900
diff changeset
77 &audio_out_plugin,
1185
e21c96e28062 ao_subdevice implemented
al3x
parents: 1121
diff changeset
78 // &audio_out_pss,
954
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
79 NULL
db20b90dd34d audio out drivers
arpi_esp
parents:
diff changeset
80 };
3095
981a9e5118ce interface to libao2 changed ao_plugin added
anders
parents: 2900
diff changeset
81
981a9e5118ce interface to libao2 changed ao_plugin added
anders
parents: 2900
diff changeset
82
981a9e5118ce interface to libao2 changed ao_plugin added
anders
parents: 2900
diff changeset
83