]> git.sesse.net Git - vlc/blobdiff - plugins/dsp/aout_dsp.c
* Fixed the BeOS compile typo.
[vlc] / plugins / dsp / aout_dsp.c
index a7421f22c08312fa8cc93c4f51706aa191f5e861..f055890f013b9725d4ac4a9f13511c6f51c433ba 100644 (file)
@@ -2,6 +2,7 @@
  * aout_dsp.c : dsp functions library
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
+ * $Id: aout_dsp.c,v 1.13 2001/05/30 17:03:12 sam Exp $
  *
  * Authors: Michel Kaempf <maxx@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -21,6 +22,9 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
  *****************************************************************************/
 
+#define MODULE_NAME dsp
+#include "modules_inner.h"
+
 /* TODO:
  *
  * - an aout_GetFormats() function
@@ -54,7 +58,7 @@
 #include "common.h"                                     /* boolean_t, byte_t */
 #include "threads.h"
 #include "mtime.h"
-#include "plugins.h"
+#include "tests.h"
 
 #include "audio_output.h"                                   /* aout_thread_t */
 
@@ -62,6 +66,7 @@
 #include "main.h"
 
 #include "modules.h"
+#include "modules_export.h"
 
 /*****************************************************************************
  * aout_sys_t: dsp audio output method descriptor
@@ -90,7 +95,7 @@ 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;
@@ -120,6 +125,12 @@ static int aout_Probe( probedata_t *p_data )
 
     /* Otherwise, there are good chances we can use this plugin, return 100. */
     close( i_fd );
+
+    if( TestMethod( AOUT_METHOD_VAR, "dsp" ) )
+    {
+        return( 999 );
+    }
+
     return( 100 );
 }