2 * Copyright (C) 2003-2010 The Music Player Daemon Project
3 * http://www.musicpd.org
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #include "output_list.h"
22 #include "output_api.h"
24 extern const struct audio_output_plugin shoutPlugin
;
25 extern const struct audio_output_plugin null_output_plugin
;
26 extern const struct audio_output_plugin fifo_output_plugin
;
27 extern const struct audio_output_plugin pipe_output_plugin
;
28 extern const struct audio_output_plugin alsaPlugin
;
29 extern const struct audio_output_plugin ao_output_plugin
;
30 extern const struct audio_output_plugin oss_output_plugin
;
31 extern const struct audio_output_plugin openal_output_plugin
;
32 extern const struct audio_output_plugin osxPlugin
;
33 extern const struct audio_output_plugin solaris_output_plugin
;
34 extern const struct audio_output_plugin pulse_output_plugin
;
35 extern const struct audio_output_plugin mvp_output_plugin
;
36 extern const struct audio_output_plugin jack_output_plugin
;
37 extern const struct audio_output_plugin httpd_output_plugin
;
38 extern const struct audio_output_plugin recorder_output_plugin
;
40 const struct audio_output_plugin
*audio_output_plugins
[] = {
48 #ifdef ENABLE_PIPE_OUTPUT
61 &openal_output_plugin
,
66 #ifdef ENABLE_SOLARIS_OUTPUT
67 &solaris_output_plugin
,
78 #ifdef ENABLE_HTTPD_OUTPUT
81 #ifdef ENABLE_RECORDER_OUTPUT
82 &recorder_output_plugin
,
87 const struct audio_output_plugin
*
88 audio_output_plugin_get(const char *name
)
91 const struct audio_output_plugin
*plugin
;
93 audio_output_plugins_for_each(plugin
, i
)
94 if (strcmp(audio_output_plugins
[i
]->name
, name
) == 0)
95 return audio_output_plugins
[i
];
100 void audio_output_plugin_print_all_types(FILE * fp
)
103 const struct audio_output_plugin
*plugin
;
105 audio_output_plugins_for_each(plugin
, i
)
106 fprintf(fp
, "%s ", plugin
->name
);