00001 /* 00002 Copyright (c) 2005, The Musepack Development Team 00003 All rights reserved. 00004 00005 Redistribution and use in source and binary forms, with or without 00006 modification, are permitted provided that the following conditions are 00007 met: 00008 00009 * Redistributions of source code must retain the above copyright 00010 notice, this list of conditions and the following disclaimer. 00011 00012 * Redistributions in binary form must reproduce the above 00013 copyright notice, this list of conditions and the following 00014 disclaimer in the documentation and/or other materials provided 00015 with the distribution. 00016 00017 * Neither the name of the The Musepack Development Team nor the 00018 names of its contributors may be used to endorse or promote 00019 products derived from this software without specific prior 00020 written permission. 00021 00022 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00023 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00024 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 00025 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 00026 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00027 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00028 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00029 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00030 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00031 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00032 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00033 */ 00034 00036 00037 #ifndef _musepack_streaminfo_h_ 00038 #define _musepack_streaminfo_h_ 00039 00040 typedef mpc_int32_t mpc_streaminfo_off_t; 00041 00046 typedef struct mpc_streaminfo { 00048 00049 mpc_uint32_t sample_freq; 00050 mpc_uint32_t channels; 00051 mpc_streaminfo_off_t header_position; 00052 mpc_uint32_t stream_version; 00053 mpc_uint32_t bitrate; 00054 double average_bitrate; 00055 mpc_uint32_t frames; 00056 mpc_int64_t pcm_samples; 00057 mpc_uint32_t max_band; 00058 mpc_uint32_t is; 00059 mpc_uint32_t ms; 00060 mpc_uint32_t block_size; 00061 mpc_uint32_t profile; 00062 const char* profile_name; 00063 00064 00066 00067 mpc_int16_t gain_title; 00068 mpc_int16_t gain_album; 00069 mpc_uint16_t peak_album; 00070 mpc_uint16_t peak_title; 00071 00072 00074 00075 mpc_uint32_t is_true_gapless; 00076 mpc_uint32_t last_frame_samples; 00077 00078 mpc_uint32_t encoder_version; 00079 char encoder[256]; 00080 00081 mpc_streaminfo_off_t tag_offset; 00082 mpc_streaminfo_off_t total_file_length; 00083 00084 } mpc_streaminfo; 00085 00086 #endif // _musepack_streaminfo_h_