X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=spx_afh.c;h=caeacb1921341b04b26f117d5de6607a80ab95e9;hp=e23236470a3efdafb01b1179e49817f79427f40f;hb=eb3142c19116730b126ca5e6a6ed2f06bed8b30f;hpb=d31995b3074bb19aa4da66ce5c4774ca9ed101a1 diff --git a/spx_afh.c b/spx_afh.c index e2323647..caeacb19 100644 --- a/spx_afh.c +++ b/spx_afh.c @@ -248,13 +248,14 @@ static int spx_rewrite_tags(const char *map, size_t mapsize, static const char * const speex_suffixes[] = {"spx", "speex", NULL}; /** - * The init function of the ogg/speex audio format handler. + * The ogg/speex audio format handler. * - * \param afh Pointer to the struct to initialize. + * This codec is considered obsolete because the opus codec surpasses its + * performance in all areas. It is only compiled in if both the ogg and the + * speex library are installed. */ -void spx_afh_init(struct audio_format_handler *afh) -{ - afh->get_file_info = spx_get_file_info, - afh->suffixes = speex_suffixes; - afh->rewrite_tags = spx_rewrite_tags; -} +const struct audio_format_handler spx_afh = { + .get_file_info = spx_get_file_info, + .suffixes = speex_suffixes, + .rewrite_tags = spx_rewrite_tags, +};