speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Andrei . Kholodnyi
Subject: [PATCH] determine availability of audio plugins by using config.h
Date: Sun, 05 Dec 2010 10:59:14 +0000

> +#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>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]