src/splt.c File Reference

Actually split the input file. More...

#include <sys/stat.h>
#include <string.h>
#include <math.h>
#include "splt.h"
Include dependency graph for splt.c:

Go to the source code of this file.

Functions

void splt_s_equal_length_split (splt_state *state, int *error)
void splt_s_error_split (splt_state *state, int *error)
void splt_s_multiple_split (splt_state *state, int *error)
void splt_s_normal_split (splt_state *state, int *error)
int splt_s_set_silence_splitpoints (splt_state *state, int *error)
int splt_s_set_trim_silence_splitpoints (splt_state *state, int *error)
void splt_s_silence_split (splt_state *state, int *error)
void splt_s_time_split (splt_state *state, int *error)
void splt_s_trim_silence_split (splt_state *state, int *error)
void splt_s_wrap_split (splt_state *state, int *error)

Detailed Description

Actually split the input file.

Definition in file splt.c.


Function Documentation

void splt_s_equal_length_split ( splt_state state,
int *  error 
)

function used with the -L option (length split)

split into X files X is defined by SPLT_OPT_LENGTH_SPLIT_FILE_NUMBER

Definition at line 568 of file splt.c.

References SPLT_OPT_LENGTH_SPLIT_FILE_NUMBER.

Referenced by mp3splt_split().

Here is the caller graph for this function:

void splt_s_error_split ( splt_state state,
int *  error 
)

the sync error mode

Definition at line 240 of file splt.c.

References splt_state::serrors, splt_syncerrors::serrors_points_num, SPLT_DEFAULT_SYNCERROR_OUTPUT, SPLT_OPT_OUTPUT_FILENAMES, SPLT_OUTPUT_DEFAULT, SPLT_TRUE, and splt_u_finish_tags_and_put_output_format_filename().

Referenced by mp3splt_split().

Here is the call graph for this function:

Here is the caller graph for this function:

void splt_s_multiple_split ( splt_state state,
int *  error 
)

splits the file with multiple points

Definition at line 145 of file splt.c.

References SPLT_OPT_SPLIT_MODE, SPLT_OPTION_NORMAL_MODE, splt_u_finish_tags_and_put_output_format_filename(), and splt_u_print_overlap_time().

Referenced by splt_s_silence_split(), and splt_s_trim_silence_split().

Here is the call graph for this function:

Here is the caller graph for this function:

int splt_s_set_silence_splitpoints ( splt_state state,
int *  error 
)

Split with split points setermined by silence detection.

Sets the silence splitpoints in state->split.splitpoints

Returns:
the number of split points found or the number of tracks specified in the options

Definition at line 670 of file splt.c.

References splt_struct::get_silence_level, splt_struct::silence_level_client_data, splt_state::silence_list, splt_state::split, splt_co_time_to_long(), SPLT_DEFAULT_PARAM_MINIMUM_LENGTH, SPLT_DEFAULT_PARAM_SHOTS, SPLT_DEFAULT_PARAM_THRESHOLD, SPLT_FALSE, SPLT_OPT_ENABLE_SILENCE_LOG, SPLT_OPT_PARAM_MIN_LENGTH, SPLT_OPT_PARAM_MIN_TRACK_LENGTH, SPLT_OPT_PARAM_NUMBER_TRACKS, SPLT_OPT_PARAM_OFFSET, SPLT_OPT_PARAM_REMOVE_SILENCE, SPLT_OPT_PARAM_SHOTS, SPLT_OPT_PARAM_THRESHOLD, SPLT_OPT_PRETEND_TO_SPLIT, splt_t_get_filename_to_split(), and SPLT_TRUE.

Referenced by mp3splt_set_silence_points(), and splt_s_silence_split().

Here is the call graph for this function:

Here is the caller graph for this function:

void splt_s_silence_split ( splt_state state,
int *  error 
)

Do the silence split.

Parameters:
error The code of a eventual error that has occoured

Definition at line 988 of file splt.c.

References SPLT_DEFAULT_SILENCE_OUTPUT, SPLT_OPT_OUTPUT_FILENAMES, SPLT_OUTPUT_DEFAULT, splt_s_multiple_split(), splt_s_set_silence_splitpoints(), and SPLT_TRUE.

Referenced by mp3splt_split().

Here is the call graph for this function:

Here is the caller graph for this function:

void splt_s_time_split ( splt_state state,
int *  error 
)

function used with the -t option (time split)

create an indefinite number of smaller files with a fixed time length specified by options.split_time in seconds

Definition at line 549 of file splt.c.

References SPLT_OPT_SPLIT_TIME.

Referenced by mp3splt_split().

Here is the caller graph for this function:

void splt_s_trim_silence_split ( splt_state state,
int *  error 
)

Do the trim silence split.

Parameters:
error The code of a eventual error that has occoured

Definition at line 1039 of file splt.c.

References SPLT_DEFAULT_TRIM_SILENCE_OUTPUT, SPLT_OPT_OUTPUT_FILENAMES, SPLT_OUTPUT_DEFAULT, splt_s_multiple_split(), and SPLT_TRUE.

Referenced by mp3splt_split().

Here is the call graph for this function:

Here is the caller graph for this function:

void splt_s_wrap_split ( splt_state state,
int *  error 
)

Automatically split a file that has been created by mp3wrap.

do the wrap split

Definition at line 1081 of file splt.c.

References SPLT_FALSE, and splt_t_get_filename_to_split().

Referenced by mp3splt_split().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on 3 Aug 2012 for libmp3splt by  doxygen 1.6.1