[PATCH] determine availability of audio plugins by using config.h

Andrei.Kholodnyi at gmail.com Andrei.Kholodnyi at gmail.com
Sun Dec 5 11:59:14 CET 2010


> +#ifdef HAVE_ALSA
> +spd_audio_plugin_t const *alsa_plugin_get(void);
> +#endif
> +
> +#ifdef HAVE_LIBAO
> +spd_audio_plugin_t const *libao_plugin_get(void);
> +#endif
> +
> +#ifdef HAVE_NAS
> +spd_audio_plugin_t const *nas_plugin_get(void);
> +#endif
> +
> +#ifdef HAVE_OSS
> +spd_audio_plugin_t const *oss_plugin_get(void);
> +#endif
> +
> +#ifdef HAVE_PULSE
> +spd_audio_plugin_t const *pulse_plugin_get(void);
> +#endif
> +


This has "no go" status from my side!
It means if you'd have 1000 audio plugins,
you'd have 1000 #ifdef MY FAVORITE SPECIAL CASE in C code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freebsoft.org/pipermail/speechd/attachments/20101205/a2a2eddd/attachment.htm>


More information about the Speechd mailing list