X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=afh.h;h=e365df86569337ba767cfe9601f81c3ba39c939c;hp=e7ca2820d92c0bc517f92b224efd12507d8dd716;hb=a15abef9eee4b8369b3ce8fcaad91a2e0c879df5;hpb=21a0bd773519c5bd39a5293f2e66ea59add8d0a9 diff --git a/afh.h b/afh.h index e7ca2820..e365df86 100644 --- a/afh.h +++ b/afh.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2006 Andre Noll + * Copyright (C) 2005-2007 Andre Noll * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -70,8 +70,11 @@ struct audio_format_info { * file header. */ char *header; - /* the length of the header, ignored if \a header is \p NULL */ + /** the length of the header, ignored if \a header is \p NULL */ unsigned header_len; + uint8_t channels; + uint16_t frequency; + uint16_t bitrate; }; /** @@ -108,14 +111,7 @@ struct audio_format_handler { * * \sa struct audio_format_info */ - int (*get_file_info)(FILE *audio_file, struct audio_format_info *afi); - /** - * cleanup function of this audio format handler - * - * This close function should deallocate any resources - * associated with the current audio file. In particular, it is responsible - * for closing the file handle. It is assumed to succeed. - */ - void (*close_audio_file)(void); + int (*get_file_info)(char *map, off_t numbytes, + struct audio_format_info *afi); };