static double chunk_time = 0.25;
FILE *audio_file;
-static struct audio_format_handler *af;
static size_t cb_read(void *buf, size_t size, size_t nmemb, void *datasource)
{
*
* \param p pointer to the struct to initialize
*/
-void ogg_init(struct audio_format_handler *p)
+void ogg_init(struct audio_format_handler *afh)
{
- af = p;
- af->get_file_info = ogg_get_file_info,
- af->close_audio_file = ogg_close_audio_file;
- af->suffixes = ogg_suffixes;
+ afh->get_file_info = ogg_get_file_info,
+ afh->close_audio_file = ogg_close_audio_file;
+ afh->suffixes = ogg_suffixes;
}