X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=audiod.c;h=3e86af537431ff67b00a47694fcaa506dea41837;hb=f192fc3c0f824b951c4cb275d7b54b2651de7e8e;hp=bb5dd7037c61bc77d737422b45c77607527950a3;hpb=945190584beab2f767f0109af9e3fb89e2b814f9;p=paraslash.git diff --git a/audiod.c b/audiod.c index bb5dd703..3e86af53 100644 --- a/audiod.c +++ b/audiod.c @@ -46,8 +46,9 @@ static struct lls_parse_result *lpr; #define OPT_UINT32_VAL(_name) (lls_uint32_val(0, OPT_RESULT(_name))) __printf_2_3 void (*para_log)(int, const char*, ...) = daemon_log; -/** define the array containing all supported audio formats */ -const char *audio_formats[] = {AUDIOD_AUDIO_FORMAT_ARRAY NULL}; +/* Audio formats supported by audiod */ +static const char *audio_formats[] = {AUDIOD_AUDIO_FORMAT_ARRAY}; +#define NUM_AUDIO_FORMATS ARRAY_SIZE(audio_formats) /** Defines how audiod handles one supported audio format. */ struct audio_format_info {