2001-06-02 23:25:43 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include "../config.h"
|
|
|
|
#include "audio_out.h"
|
2001-06-08 23:31:06 +00:00
|
|
|
#include "afmt.h"
|
2001-06-05 18:40:44 +00:00
|
|
|
|
2001-06-02 23:25:43 +00:00
|
|
|
// there are some globals:
|
2001-11-24 05:21:22 +00:00
|
|
|
ao_data_t ao_data={0,0,0,0,OUTBURST,-1,0};
|
2001-06-21 22:34:58 +00:00
|
|
|
char *ao_subdevice = NULL;
|
2001-06-02 23:25:43 +00:00
|
|
|
|
2001-06-05 18:40:44 +00:00
|
|
|
#ifdef USE_OSS_AUDIO
|
2001-06-02 23:25:43 +00:00
|
|
|
extern ao_functions_t audio_out_oss;
|
2001-06-05 18:40:44 +00:00
|
|
|
#endif
|
2001-06-02 23:25:43 +00:00
|
|
|
extern ao_functions_t audio_out_null;
|
2001-06-04 18:42:31 +00:00
|
|
|
#ifdef HAVE_ALSA5
|
|
|
|
extern ao_functions_t audio_out_alsa5;
|
|
|
|
#endif
|
2001-06-05 10:37:50 +00:00
|
|
|
#ifdef HAVE_ALSA9
|
|
|
|
extern ao_functions_t audio_out_alsa9;
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_ESD
|
|
|
|
extern ao_functions_t audio_out_esd;
|
|
|
|
#endif
|
2001-12-03 01:13:48 +00:00
|
|
|
#ifdef HAVE_NAS
|
|
|
|
extern ao_functions_t audio_out_nas;
|
|
|
|
#endif
|
2001-06-03 10:48:36 +00:00
|
|
|
#ifdef HAVE_SDL
|
|
|
|
extern ao_functions_t audio_out_sdl;
|
|
|
|
#endif
|
2001-06-05 18:40:44 +00:00
|
|
|
#ifdef USE_SUN_AUDIO
|
|
|
|
extern ao_functions_t audio_out_sun;
|
|
|
|
#endif
|
2001-10-24 14:02:19 +00:00
|
|
|
#ifdef USE_SGI_AUDIO
|
|
|
|
extern ao_functions_t audio_out_sgi;
|
|
|
|
#endif
|
2001-11-05 03:01:11 +00:00
|
|
|
extern ao_functions_t audio_out_mpegpes;
|
2002-02-21 16:02:26 +00:00
|
|
|
extern ao_functions_t audio_out_pcm;
|
2001-06-21 22:34:58 +00:00
|
|
|
extern ao_functions_t audio_out_pss;
|
2001-11-24 05:21:22 +00:00
|
|
|
extern ao_functions_t audio_out_plugin;
|
2001-06-02 23:25:43 +00:00
|
|
|
|
|
|
|
ao_functions_t* audio_out_drivers[] =
|
|
|
|
{
|
2001-06-05 18:40:44 +00:00
|
|
|
#ifdef USE_OSS_AUDIO
|
2001-06-02 23:25:43 +00:00
|
|
|
&audio_out_oss,
|
2001-08-28 10:54:31 +00:00
|
|
|
#endif
|
|
|
|
#ifdef USE_SUN_AUDIO
|
|
|
|
&audio_out_sun,
|
2001-10-24 14:02:19 +00:00
|
|
|
#endif
|
|
|
|
#ifdef USE_SGI_AUDIO
|
|
|
|
&audio_out_sgi,
|
2001-06-05 18:40:44 +00:00
|
|
|
#endif
|
2001-06-02 23:25:43 +00:00
|
|
|
&audio_out_null,
|
2001-06-04 18:42:31 +00:00
|
|
|
#ifdef HAVE_ALSA5
|
2001-06-04 17:40:56 +00:00
|
|
|
&audio_out_alsa5,
|
2001-06-04 18:42:31 +00:00
|
|
|
#endif
|
2001-06-05 10:37:50 +00:00
|
|
|
#ifdef HAVE_ALSA9
|
|
|
|
&audio_out_alsa9,
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_ESD
|
|
|
|
&audio_out_esd,
|
|
|
|
#endif
|
2001-12-03 01:13:48 +00:00
|
|
|
#ifdef HAVE_NAS
|
|
|
|
&audio_out_nas,
|
|
|
|
#endif
|
2001-06-03 10:48:36 +00:00
|
|
|
#ifdef HAVE_SDL
|
|
|
|
&audio_out_sdl,
|
|
|
|
#endif
|
2001-11-05 03:01:11 +00:00
|
|
|
&audio_out_mpegpes,
|
2002-02-21 16:02:26 +00:00
|
|
|
&audio_out_pcm,
|
2001-11-24 05:21:22 +00:00
|
|
|
&audio_out_plugin,
|
2001-06-21 22:34:58 +00:00
|
|
|
// &audio_out_pss,
|
2001-06-02 23:25:43 +00:00
|
|
|
NULL
|
|
|
|
};
|
2001-11-24 05:21:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
|