X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=afh.h;h=9ad078582e156be166b7c06dc35100549a26f337;hb=1e8a6c4a550a6d9cf7c1f0ae691cd3219e94d55a;hp=b4de774ad4f74de087d3d65cb78cf8a890ebef9f;hpb=880818ccab1a9223399194926dfa33b509d8bc12;p=paraslash.git diff --git a/afh.h b/afh.h index b4de774a..9ad07858 100644 --- a/afh.h +++ b/afh.h @@ -41,7 +41,7 @@ struct audio_format_info { * The table that specifies the offset of the individual pieces in * the current audio file. */ - size_t *chunk_table; + uint32_t *chunk_table; /** Period of time between sending data chunks. */ struct timeval chunk_tv; /** End of file timeout - Do not load new audio file until this time. */ @@ -101,3 +101,8 @@ struct audio_format_handler { struct audio_format_info *afi); }; +void afh_init(void); +int guess_audio_format(const char *name); +int compute_afhi(const char *path, char *data, size_t size, + struct audio_format_info *afhi); +const char *audio_format_name(int);