Mercurial > mplayer.hg
annotate libao2/audio_out.c @ 6590:bfc209bb3f48
-frames 0 fix, multifile frames support by tibcu
author | alex |
---|---|
date | Fri, 28 Jun 2002 17:13:18 +0000 |
parents | 0398cb49fe5e |
children | e9e4398029de |
rev | line source |
---|---|
954 | 1 #include <stdio.h> |
2 #include <stdlib.h> | |
3 | |
4 #include "../config.h" | |
5 #include "audio_out.h" | |
1058 | 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 | 8 // there are some globals: |
3095 | 9 ao_data_t ao_data={0,0,0,0,OUTBURST,-1,0}; |
1185 | 10 char *ao_subdevice = NULL; |
954 | 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 | 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 |
6214
0398cb49fe5e
aRts audio out support by Michele Balistreri <brain at email.it>
atmos4
parents:
6069
diff
changeset
|
15 #ifdef USE_ARTS |
0398cb49fe5e
aRts audio out support by Michele Balistreri <brain at email.it>
atmos4
parents:
6069
diff
changeset
|
16 extern ao_functions_t audio_out_arts; |
0398cb49fe5e
aRts audio out support by Michele Balistreri <brain at email.it>
atmos4
parents:
6069
diff
changeset
|
17 #endif |
954 | 18 extern ao_functions_t audio_out_null; |
1007 | 19 #ifdef HAVE_ALSA5 |
20 extern ao_functions_t audio_out_alsa5; | |
21 #endif | |
1032 | 22 #ifdef HAVE_ALSA9 |
23 extern ao_functions_t audio_out_alsa9; | |
24 #endif | |
25 #ifdef HAVE_ESD | |
26 extern ao_functions_t audio_out_esd; | |
27 #endif | |
3276 | 28 #ifdef HAVE_NAS |
29 extern ao_functions_t audio_out_nas; | |
30 #endif | |
966
69b4f944ce08
Added support for sdl audio out (buggy pre-alpha).
atmosfear
parents:
954
diff
changeset
|
31 #ifdef HAVE_SDL |
69b4f944ce08
Added support for sdl audio out (buggy pre-alpha).
atmosfear
parents:
954
diff
changeset
|
32 extern ao_functions_t audio_out_sdl; |
69b4f944ce08
Added support for sdl audio out (buggy pre-alpha).
atmosfear
parents:
954
diff
changeset
|
33 #endif |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1032
diff
changeset
|
34 #ifdef USE_SUN_AUDIO |
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1032
diff
changeset
|
35 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
|
36 #endif |
2450 | 37 #ifdef USE_SGI_AUDIO |
38 extern ao_functions_t audio_out_sgi; | |
39 #endif | |
6069
8e88e92fe331
Initial support for dxr2. Based on patch from Tobias Diedrich <ranma@gmx.at>.
albeu
parents:
5192
diff
changeset
|
40 #ifdef HAVE_DXR2 |
8e88e92fe331
Initial support for dxr2. Based on patch from Tobias Diedrich <ranma@gmx.at>.
albeu
parents:
5192
diff
changeset
|
41 extern ao_functions_t audio_out_dxr2; |
8e88e92fe331
Initial support for dxr2. Based on patch from Tobias Diedrich <ranma@gmx.at>.
albeu
parents:
5192
diff
changeset
|
42 #endif |
4788
d678ce495a75
Moved HW dependent mixer stuff to libao and removed master switch
anders
parents:
4097
diff
changeset
|
43 extern ao_functions_t audio_out_mpegpes; |
1107 | 44 extern ao_functions_t audio_out_pcm; |
1185 | 45 extern ao_functions_t audio_out_pss; |
3095 | 46 extern ao_functions_t audio_out_plugin; |
954 | 47 |
48 ao_functions_t* audio_out_drivers[] = | |
49 { | |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1032
diff
changeset
|
50 #ifdef USE_OSS_AUDIO |
954 | 51 &audio_out_oss, |
1038
b36fb1ae4b53
applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents:
1032
diff
changeset
|
52 #endif |
6214
0398cb49fe5e
aRts audio out support by Michele Balistreri <brain at email.it>
atmos4
parents:
6069
diff
changeset
|
53 #ifdef USE_ARTS |
0398cb49fe5e
aRts audio out support by Michele Balistreri <brain at email.it>
atmos4
parents:
6069
diff
changeset
|
54 &audio_out_arts, |
0398cb49fe5e
aRts audio out support by Michele Balistreri <brain at email.it>
atmos4
parents:
6069
diff
changeset
|
55 #endif |
1725
24e75b632740
Move the sun audio driver near the start of the list of audio drivers, so
jkeil
parents:
1528
diff
changeset
|
56 #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
|
57 &audio_out_sun, |
24e75b632740
Move the sun audio driver near the start of the list of audio drivers, so
jkeil
parents:
1528
diff
changeset
|
58 #endif |
2450 | 59 #ifdef USE_SGI_AUDIO |
60 &audio_out_sgi, | |
61 #endif | |
6069
8e88e92fe331
Initial support for dxr2. Based on patch from Tobias Diedrich <ranma@gmx.at>.
albeu
parents:
5192
diff
changeset
|
62 #ifdef HAVE_DXR2 |
8e88e92fe331
Initial support for dxr2. Based on patch from Tobias Diedrich <ranma@gmx.at>.
albeu
parents:
5192
diff
changeset
|
63 &audio_out_dxr2, |
8e88e92fe331
Initial support for dxr2. Based on patch from Tobias Diedrich <ranma@gmx.at>.
albeu
parents:
5192
diff
changeset
|
64 #endif |
954 | 65 &audio_out_null, |
1007 | 66 #ifdef HAVE_ALSA5 |
995 | 67 &audio_out_alsa5, |
1007 | 68 #endif |
1032 | 69 #ifdef HAVE_ALSA9 |
70 &audio_out_alsa9, | |
71 #endif | |
72 #ifdef HAVE_ESD | |
73 &audio_out_esd, | |
74 #endif | |
3276 | 75 #ifdef HAVE_NAS |
76 &audio_out_nas, | |
77 #endif | |
966
69b4f944ce08
Added support for sdl audio out (buggy pre-alpha).
atmosfear
parents:
954
diff
changeset
|
78 #ifdef HAVE_SDL |
69b4f944ce08
Added support for sdl audio out (buggy pre-alpha).
atmosfear
parents:
954
diff
changeset
|
79 &audio_out_sdl, |
69b4f944ce08
Added support for sdl audio out (buggy pre-alpha).
atmosfear
parents:
954
diff
changeset
|
80 #endif |
4788
d678ce495a75
Moved HW dependent mixer stuff to libao and removed master switch
anders
parents:
4097
diff
changeset
|
81 &audio_out_mpegpes, |
1107 | 82 &audio_out_pcm, |
3095 | 83 &audio_out_plugin, |
1185 | 84 // &audio_out_pss, |
954 | 85 NULL |
86 }; | |
3095 | 87 |
88 | |
89 |