]> git.sesse.net Git - vlc/blobdiff - plugins/sdl/aout_sdl.c
* Ported Glide and MGA plugins to the new module API. MGA never worked,
[vlc] / plugins / sdl / aout_sdl.c
index cf59d48b7fb99d450939f00c3a611f9a4c8f2e9a..6295f45b2f294cae1ebcc30ed36bad4972c41af6 100644 (file)
@@ -22,6 +22,9 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
  *****************************************************************************/
 
+#define MODULE_NAME sdl
+#include "modules_inner.h"
+
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
@@ -86,7 +89,7 @@ static void    aout_SDLCallback ( void *userdata, Uint8 *stream, int len );
  * 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;
@@ -106,8 +109,9 @@ static int aout_Probe( probedata_t *p_data )
 {
     SDL_AudioSpec desired, obtained;
 
+    return 0;
     /* Start AudioSDL */
-    if( SDL_Init(SDL_INIT_AUDIO) != 0 )
+    if( SDL_Init(SDL_INIT_AUDIO | SDL_INIT_NOPARACHUTE) != 0 )
     {
         intf_DbgMsg( "aout: SDL_Init failed (%s)", SDL_GetError() );
         return( 0 );
@@ -116,7 +120,7 @@ static int aout_Probe( probedata_t *p_data )
     desired.freq       = 11025;                                 /* frequency */
     desired.format     = AUDIO_U8;                        /* unsigned 8 bits */
     desired.channels   = 2;                                          /* mono */
-    desired.callback   = aout_SDLCallback;       /* no callback function yet */
+    desired.callback   = NULL;                   /* no callback function yet */
     desired.userdata   = NULL;                     /* null parm for callback */
     desired.samples    = 4096;
 
@@ -136,7 +140,7 @@ static int aout_Probe( probedata_t *p_data )
         return( 999 );
     }
 
-    return( 50 );
+    return( 40 );
 }
 
 /*****************************************************************************