00001 /********************************************************** 00002 * libmp3splt -- library based on mp3splt, 00003 * for mp3/ogg splitting without decoding 00004 * 00005 * Copyright (c) 2002-2005 M. Trotta - <mtrotta@users.sourceforge.net> 00006 * Copyright (c) 2005-2012 Alexandru Munteanu - io_fx@yahoo.fr 00007 * 00008 *********************************************************/ 00009 00010 /********************************************************** 00011 * This program is free software; you can redistribute it and/or 00012 * modify it under the terms of the GNU General Public License 00013 * as published by the Free Software Foundation; either version 2 00014 * of the License, or (at your option) any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License 00022 * along with this program; if not, write to the Free Software 00023 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00024 * 02111-1307, 00025 * USA. 00026 *********************************************************/ 00027 00028 #include "splt.h" 00029 00030 #include "mp3.h" 00031 00032 void splt_mp3_init_stream_frame(splt_mp3_state *mp3state); 00033 void splt_mp3_finish_stream_frame(splt_mp3_state *mp3state); 00034 void splt_mp3_checksync(splt_mp3_state *mp3state); 00035 int splt_mp3_c_bitrate(unsigned long head); 00036 struct splt_header splt_mp3_makehead(unsigned long headword, 00037 struct splt_mp3 mp3f, struct splt_header head, off_t ptr); 00038 off_t splt_mp3_findhead(splt_mp3_state *mp3state, off_t start); 00039 off_t splt_mp3_findvalidhead(splt_mp3_state *mp3state, off_t start); 00040 int splt_mp3_xing_info_off(splt_mp3_state *mp3state); 00041 int splt_mp3_get_frame(splt_mp3_state *mp3state); 00042 int splt_mp3_get_valid_frame(splt_state *state, int *error); 00043