X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=afh.h;h=ba72d80e5917b103e879ce221526d1a1a5e3fccc;hb=d440a71683940a58747de6dc32643db452d9cf54;hp=881db3c24217beff8d2885e1d62c05f3419aa404;hpb=fb3fd5b4ddaf52e19303126ea1bacacc5954d808;p=paraslash.git diff --git a/afh.h b/afh.h index 881db3c2..ba72d80e 100644 --- a/afh.h +++ b/afh.h @@ -58,8 +58,6 @@ struct afh_info { /** Data about the current audio file, passed from afs to server. */ struct audio_file_data { - /** The open file descriptor to the current audio file. */ - int fd; /** Vss needs this for streaming. */ struct afh_info afhi; /** @@ -113,8 +111,8 @@ struct audio_format_handler { * portion of the memory mapped audio file. The caller must not call * free() on it. */ - int (*get_chunk)(long unsigned chunk_num, void *afh_context, - const char **buf, size_t *len); + int (*get_chunk)(uint32_t chunk_num, void *afh_context, + const char **buf, uint32_t *len); /** Deallocate the resources occupied by ->open(). */ void (*close)(void *afh_context); /** @@ -133,7 +131,7 @@ int compute_afhi(const char *path, char *data, size_t size, const char *audio_format_name(int); __must_check int afh_get_chunk(long unsigned chunk_num, struct afh_info *afhi, uint8_t audio_format_id, const void *map, size_t mapsize, - const char **buf, size_t *len, void **afh_context); + const char **buf, uint32_t *len, void **afh_context); void afh_close(void *afh_context, uint8_t audio_format_id); int32_t afh_get_start_chunk(int32_t approx_chunk_num, const struct afh_info *afhi, uint8_t audio_format_id);