]> git.sesse.net Git - vlc/blob - plugins/arts/arts.c
* aRts audio output courtesy of Emmanuel Blindauer <manu@agat.net>.
[vlc] / plugins / arts / arts.c
1 /*****************************************************************************
2  * arts.c : aRts module
3  *****************************************************************************
4  * Copyright (C) 2000, 2001 VideoLAN
5  *
6  * Authors: Emmanuel Blindauer <manu@agat.net>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  * 
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
21  *****************************************************************************/
22
23 #define MODULE_NAME arts
24 #include "modules_inner.h"
25
26 /*****************************************************************************
27  * Preamble
28  *****************************************************************************/
29 #include "defs.h"
30
31 #include <stdlib.h>                                      /* malloc(), free() */
32 #include <string.h>                                              /* strdup() */
33
34 #include "config.h"
35 #include "common.h"                                     /* boolean_t, byte_t */
36 #include "threads.h"
37 #include "mtime.h"
38
39 #include "modules.h"
40 #include "modules_export.h"
41
42 /*****************************************************************************
43  * Capabilities defined in the other files.
44  *****************************************************************************/
45 void _M( aout_getfunctions )( function_list_t * p_function_list );
46
47 /*****************************************************************************
48  * Build configuration tree.
49  *****************************************************************************/
50 MODULE_CONFIG_START
51 ADD_WINDOW( "Configuration for arts module" )
52     ADD_FRAME( "aRts" )
53         ADD_COMMENT( "This module does not need configuration" )
54 MODULE_CONFIG_STOP
55
56 MODULE_INIT_START
57     p_module->i_capabilities = MODULE_CAPABILITY_NULL
58                                 | MODULE_CAPABILITY_AOUT;
59     p_module->psz_longname = "arts audio module";
60 MODULE_INIT_STOP
61
62 MODULE_ACTIVATE_START
63     _M( aout_getfunctions )( &p_module->p_functions->aout );
64 MODULE_ACTIVATE_STOP
65
66 MODULE_DEACTIVATE_START
67 MODULE_DEACTIVATE_STOP
68