X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=afs.c;h=608bdde87e3fc32de56739f119b05b619310108a;hp=e3b0db55894dfb4705ed5c052594d6469fb6332d;hb=68ae99f74f658df5eb53c7ef0127a210e3defd5e;hpb=8b2c02c8d6255583982e767374d39375b3380c4d diff --git a/afs.c b/afs.c index e3b0db55..608bdde8 100644 --- a/afs.c +++ b/afs.c @@ -26,6 +26,7 @@ #include /* gettimeofday */ #include "server.cmdline.h" #include "db.h" +#include "afh.h" #include "afs.h" #include "send.h" #include "error.h" @@ -197,7 +198,7 @@ int guess_audio_format(const char *name) continue; if (strcasecmp(name + len - plen, p)) continue; - PARA_DEBUG_LOG("might be %s\n", audio_format_name(i)); +// PARA_DEBUG_LOG("might be %s\n", audio_format_name(i)); return i; } } @@ -393,6 +394,10 @@ char *afs_get_header(int *header_len) return NULL; return afl[mmd->audio_format].get_header_info(header_len); } +const char *supported_audio_formats(void) +{ + return SUPPORTED_AUDIO_FORMATS; +} /** * get the chunk time of the current audio file @@ -417,9 +422,9 @@ struct timeval *afs_chunk_time(void) * and acted upon by calling appropriate functions from the lower layers. * Possible actions include * - * - request a new file list from the current dabase tool (audio file change) + * - request a new file list from the current audio file selector * - shutdown of all senders (stop/pause command) - * - repositioning of the stream (ff/jmp command) + * - reposition the stream (ff/jmp command) * * \return A pointer to a struct timeval containing the timeout for the next * chunk of data to be sent, or NULL if we're not sending right now.