X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=afh.h;h=c237e2956fa77dcf39ec34303661b898486aad75;hp=ec1d67065c757402b3a63d81e27450d763d87263;hb=6f68e76a0cfe31757c4e7158ca30f4c85b8a8774;hpb=36ec2a43a7d9c085f16544e282a439cdbaec1e00 diff --git a/afh.h b/afh.h index ec1d6706..c237e295 100644 --- a/afh.h +++ b/afh.h @@ -58,13 +58,25 @@ struct afh_info { uint16_t bitrate; }; +/** 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; + /** Size of the largest chunk. */ + uint32_t max_chunk_size; + /** Needed to get the audio file header. */ + uint8_t audio_format_id; +}; + /** - * Structure for audio format handling. + * Structure for audio format handling. * - * There's one such struct for each supported audio format. Initially, only \a - * name and \a init are defined. During the startup process, para_server calls - * the \a init function of each audio format handler which is expected to fill - * in the other part of this struct. + * There's one such struct for each supported audio format. Initially, only \a + * name and \a init are defined. During the startup process, para_server calls + * the \a init function of each audio format handler which is expected to fill + * in the other part of this struct. */ struct audio_format_handler { /** Name of the audio format. */