00001 /* 00002 * This file is part of libbluray 00003 * Copyright (C) 2010 hpi1 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2.1 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public 00016 * License along with this library. If not, see 00017 * <http://www.gnu.org/licenses/>. 00018 */ 00019 00020 #if !defined(_SOUND_PARSE_H_) 00021 #define _SOUND_PARSE_H_ 00022 00023 #include <util/attributes.h> 00024 00025 #include <stdint.h> 00026 00027 #ifdef __cplusplus 00028 extern "C" { 00029 #endif 00030 00031 typedef struct { 00032 uint8_t num_channels; 00033 uint32_t sample_rate; 00034 uint8_t bits_per_sample; 00035 00036 uint32_t num_frames; 00037 uint16_t *samples; /* LPCM, interleaved */ 00038 } SOUND_OBJECT; 00039 00040 typedef struct { 00041 uint16_t num_sounds; 00042 SOUND_OBJECT sounds[]; 00043 } SOUND_DATA; 00044 00045 00046 BD_PRIVATE SOUND_DATA* sound_parse(const char *path); /* parse sound.bdmv */ 00047 BD_PRIVATE void sound_free(SOUND_DATA **sound); 00048 00049 #ifdef __cplusplus 00050 }; 00051 #endif 00052 00053 #endif // _MOBJ_PARSE_H_
1.6.3