#include <sys/time.h> /* gettimeofday */
#include "server.cmdline.h"
#include "db.h"
+#include "afh.h"
#include "afs.h"
#include "send.h"
#include "error.h"
extern struct misc_meta_data *mmd;
extern struct audio_file_selector selectors[];
extern struct sender senders[];
-extern struct gengetopt_args_info conf;
static FILE *audio_file = NULL;
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;
}
}
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
* 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.