00001 /***************************************************************************** 00002 * wma.c: wma decoder using integer decoder from Rockbox, based on FFmpeg 00003 ***************************************************************************** 00004 * Copyright (C) 2008 M2X 00005 * 00006 * Authors: Rafaël Carré <rcarre@m2x.nl> 00007 * 00008 * This program is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 00021 *****************************************************************************/ 00022 00023 #ifndef _ASF_H 00024 #define _ASF_H 00025 00026 #include <inttypes.h> 00027 00028 /* ASF codec IDs */ 00029 #define ASF_CODEC_ID_WMAV1 0x160 00030 #define ASF_CODEC_ID_WMAV2 0x161 00031 00032 struct asf_waveformatex_s { 00033 uint32_t packet_size; 00034 int audiostream; 00035 uint16_t codec_id; 00036 uint16_t channels; 00037 uint32_t rate; 00038 uint32_t bitrate; 00039 uint16_t blockalign; 00040 uint16_t bitspersample; 00041 uint16_t datalen; 00042 uint8_t data[6]; 00043 }; 00044 typedef struct asf_waveformatex_s asf_waveformatex_t; 00045 00046 #endif
1.5.6