* aout_alsa.c : Alsa functions library
*****************************************************************************
* Copyright (C) 2000 VideoLAN
+ * $Id: aout_alsa.c,v 1.14 2001/05/06 04:32:02 sam Exp $
*
- * Authors:
- * Henri Fallon <henri@videolan.org>
+ * Authors: Henri Fallon <henri@videolan.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*****************************************************************************/
#define MODULE_NAME alsa
+#include "modules_inner.h"
/*****************************************************************************
* Preamble
#include <stdlib.h> /* calloc(), malloc(), free() */
#include <sys/asoundlib.h>
-#include <linux/asound.h>
#include "config.h"
#include "common.h" /* boolean_t, byte_t */
#include "main.h"
#include "modules.h"
-#include "modules_inner.h"
-
-
typedef struct alsa_device_s
{
byte_t *buffer, int i_size );
static void aout_Close ( aout_thread_t *p_aout );
-
/*****************************************************************************
* Functions exported as capabilities. They are declared as static so that
* we don't pollute the namespace too much.
*****************************************************************************/
-void aout_getfunctions( function_list_t * p_function_list )
+void _M( aout_getfunctions )( function_list_t * p_function_list )
{
p_function_list->pf_probe = aout_Probe;
p_function_list->functions.aout.pf_open = aout_Open;
p_function_list->functions.aout.pf_play = aout_Play;
p_function_list->functions.aout.pf_close = aout_Close;
}
-
/*****************************************************************************
* aout_Probe: probes the audio device and return a score
snd_pcm_playback_go( p_aout->p_sys->p_alsa_handle );
if( i_playback_go_returns )
{
- intf_ErrMsg( "ALSA_PLUGIN : Unable to prepare channel (bis) :
- exit = %i", i_playback_go_returns );
+ intf_ErrMsg( "ALSA_PLUGIN : Unable to prepare channel (bis) : "
+ "exit = %i", i_playback_go_returns );
intf_ErrMsg( "This means : %s",
snd_strerror( i_set_param_returns ) );
return( -1 );