libmp3splt
|
00001 /********************************************************** 00002 * 00003 * libmp3splt -- library based on mp3splt, 00004 * for mp3/ogg splitting without decoding 00005 * 00006 * Copyright (c) 2002-2005 M. Trotta - <mtrotta@users.sourceforge.net> 00007 * Copyright (c) 2005-2011 Munteanu Alexandru - io_fx@yahoo.fr 00008 * 00009 * http://mp3splt.sourceforge.net 00010 * 00011 *********************************************************/ 00012 00013 /********************************************************** 00014 * 00015 * This program is free software; you can redistribute it and/or 00016 * modify it under the terms of the GNU General Public License 00017 * as published by the Free Software Foundation; either version 2 00018 * of the License, or (at your option) any later version. 00019 * 00020 * This program is distributed in the hope that it will be useful, 00021 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00023 * GNU General Public License for more details. 00024 * 00025 * You should have received a copy of the GNU General Public License 00026 * along with this program; if not, write to the Free Software 00027 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00028 * 02111-1307, 00029 * USA. 00030 * 00031 *********************************************************/ 00032 00033 #ifndef SPLT_TYPES_FUNC_H 00034 00035 splt_state *splt_t_new_state(splt_state *state, int *error); 00036 void splt_t_free_state(splt_state *state); 00037 00038 void splt_t_set_total_time(splt_state *state, long value); 00039 long splt_t_get_total_time(splt_state *state); 00040 double splt_t_get_total_time_as_double_secs(splt_state *state); 00041 00042 void splt_t_set_new_filename_path(splt_state *state, 00043 const char *new_filename_path, int *error); 00044 char *splt_t_get_new_filename_path(splt_state *state); 00045 00046 int splt_t_set_path_of_split(splt_state *state, const char *path); 00047 char *splt_t_get_path_of_split(splt_state *state); 00048 00049 int splt_t_set_m3u_filename(splt_state *state, const char *filename); 00050 char *splt_t_get_m3u_filename(splt_state *state); 00051 char *splt_t_get_m3u_file_with_path(splt_state *state, int *error); 00052 00053 int splt_t_set_input_filename_regex(splt_state *state, const char *regex); 00054 char *splt_t_get_input_filename_regex(splt_state *state); 00055 00056 int splt_t_set_default_comment_tag(splt_state *state, const char *default_comment); 00057 char *splt_t_get_default_comment_tag(splt_state *state); 00058 00059 int splt_t_set_default_genre_tag(splt_state *state, const char *default_genre); 00060 char *splt_t_get_default_genre_tag(splt_state *state); 00061 00062 int splt_t_set_silence_log_fname(splt_state *state, const char *filename); 00063 char *splt_t_get_silence_log_fname(splt_state *state); 00064 00065 int splt_t_set_filename_to_split(splt_state *state, const char *filename); 00066 char *splt_t_get_filename_to_split(splt_state *state); 00067 char *splt_t_get_filename_to_split(splt_state *state); 00068 00069 void splt_t_set_current_split(splt_state *state, int index); 00070 void splt_t_current_split_next(splt_state *state); 00071 int splt_t_get_current_split(splt_state *state); 00072 int splt_t_get_current_split_file_number(splt_state *state); 00073 00074 void splt_t_set_splitnumber(splt_state *state, int number); 00075 int splt_t_get_splitnumber(splt_state *state); 00076 00077 void splt_t_free_splitpoints_tags(splt_state *state); 00078 00079 void splt_t_clean_one_split_data(splt_state *state, int num); 00080 void splt_t_clean_split_data(splt_state *state,int tracks); 00081 00082 int splt_t_split_is_canceled(splt_state *state); 00083 void splt_t_set_stop_split(splt_state *state, int bool_value); 00084 00085 #define SPLT_TYPES_FUNC_H 00086 00087 #endif 00088