X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=opus_common.h;h=2160f15192f30a8f1b5fde0be38fcd127a89681a;hp=71923f119b10806ca6fb973dc66ea0179665edfc;hb=74592ed100009a2d73e03861ae9626363f06aca9;hpb=9d75ded33ce6664156acb07e311f51d55970bbea diff --git a/opus_common.h b/opus_common.h index 71923f11..2160f151 100644 --- a/opus_common.h +++ b/opus_common.h @@ -1,3 +1,14 @@ +/* + * Copyright (C) 2013 Andre Noll + * + * Licensed under the GPL v2. For licencing details see 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 +16,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. */