Mercurial > mplayer.hg
annotate libao2/audio_out.c @ 3905:91e5c563fce5
SSE added
author | arpi |
---|---|
date | Sun, 30 Dec 2001 20:26:19 +0000 |
parents | e279cc05f189 |
children | 492df9b2b1cf |
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 |
954 | 15 extern ao_functions_t audio_out_null; |
1007 | 16 #ifdef HAVE_ALSA5 |
17 extern ao_functions_t audio_out_alsa5; | |
18 #endif | |
1032 | 19 #ifdef HAVE_ALSA9 |
20 extern ao_functions_t audio_out_alsa9; | |
21 #endif | |
22 #ifdef HAVE_ESD | |
23 extern ao_functions_t audio_out_esd; | |
24 #endif | |
3276 | 25 #ifdef HAVE_NAS |
26 extern ao_functions_t audio_out_nas; | |
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 | 34 #ifdef USE_SGI_AUDIO |
35 extern ao_functions_t audio_out_sgi; | |
36 #endif | |
2645 | 37 #ifdef HAVE_DXR3 |
38 extern ao_functions_t audio_out_dxr3; | |
39 #endif | |
1107 | 40 extern ao_functions_t audio_out_pcm; |
2708 | 41 extern ao_functions_t audio_out_mpegpes; |
1185 | 42 extern ao_functions_t audio_out_pss; |
3095 | 43 extern ao_functions_t audio_out_plugin; |
954 | 44 |
45 ao_functions_t* audio_out_drivers[] = | |
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 | 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 | 53 #ifdef USE_SGI_AUDIO |
54 &audio_out_sgi, | |
55 #endif | |
954 | 56 &audio_out_null, |
1007 | 57 #ifdef HAVE_ALSA5 |
995 | 58 &audio_out_alsa5, |
1007 | 59 #endif |
1032 | 60 #ifdef HAVE_ALSA9 |
61 &audio_out_alsa9, | |
62 #endif | |
63 #ifdef HAVE_ESD | |
64 &audio_out_esd, | |
65 #endif | |
3276 | 66 #ifdef HAVE_NAS |
67 &audio_out_nas, | |
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 | 72 #ifdef HAVE_DXR3 |
73 &audio_out_dxr3, | |
74 #endif | |
1107 | 75 &audio_out_pcm, |
2708 | 76 &audio_out_mpegpes, |
3095 | 77 &audio_out_plugin, |
1185 | 78 // &audio_out_pss, |
954 | 79 NULL |
80 }; | |
3095 | 81 |
82 | |
83 |