X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=opus_common.h;h=f8cf459c1008fe9731d9eaaaf253fd1be6710af9;hp=71923f119b10806ca6fb973dc66ea0179665edfc;hb=e0545fd978a9583f9583b9bb35e5c25cb78c78f4;hpb=7007aedb78262af262e7e7db8d010c6498e79290 diff --git a/opus_common.h b/opus_common.h index 71923f11..f8cf459c 100644 --- a/opus_common.h +++ b/opus_common.h @@ -1,3 +1,10 @@ +/* Copyright (C) 2013 Andre Noll , see file COPYING. */ + +/** + * \file opus_common.h + * Common declarations for the opus decoder and audio format handler. + */ + /** Various bits stored in the header of an opus stream. */ struct opus_header { /** lower 4 bits of the version byte, must be 0. */ @@ -5,11 +12,11 @@ struct opus_header { /** 1..255 */ int channels; /** Number of bytes to skip from the beginning. */ - int preskip; + uint16_t preskip; /** Sample rate of the input stream, used by the audio format handler. */ - ogg_uint32_t input_sample_rate; + uint32_t input_sample_rate; /** In dB, should be zero whenever possible. */ - int gain; + uint16_t gain; /** Number of logical streams (usually 1). */ int nb_streams; /** Number of streams to decode as 2 channel streams. */