return i >= 0? afl[i].name : "(none)";
}
+static void afh_init(void)
+{
+ int i;
+
+ PARA_DEBUG_LOG("supported audio formats: %s\n",
+ SUPPORTED_AUDIO_FORMATS);
+ FOR_EACH_AUDIO_FORMAT(i) {
+ PARA_NOTICE_LOG("initializing %s handler\n",
+ audio_format_name(i));
+ afl[i].init(&afl[i]);
+ }
+}
+
/**
* initialize the virtual streaming system
*
conf.announce_time_arg : 300,
autoplay_delay = conf.autoplay_delay_arg > 0?
conf.autoplay_delay_arg : 0;
-
- PARA_DEBUG_LOG("supported audio formats: %s\n",
- SUPPORTED_AUDIO_FORMATS);
- FOR_EACH_AUDIO_FORMAT(i) {
- PARA_NOTICE_LOG("initializing %s handler\n",
- audio_format_name(i));
- afl[i].init(&afl[i]);
- }
+ afh_init();
ms2tv(announce_time, &announce_tv);
PARA_INFO_LOG("announce timeval: %lums\n", tv2ms(&announce_tv));
for (i = 0; senders[i].name; i++) {