libmp3splt
The MP3 plugin's API

Functions

int splt_pl_check_plugin_is_for_file (splt_state *state, int *error)
void splt_pl_dewrap (splt_state *state, int listonly, const char *dir, int *error)
void splt_pl_end (splt_state *state, int *error)
void splt_pl_init (splt_state *state, int *error)
int splt_pl_scan_silence (splt_state *state, int *error)
void splt_pl_search_syncerrors (splt_state *state, int *error)
void splt_pl_set_original_tags (splt_state *state, int *error)
void splt_pl_set_plugin_info (splt_plugin_info *info, int *error)
int splt_pl_simple_split (splt_state *state, char *output_fname, off_t begin, off_t end)
double splt_pl_split (splt_state *state, const char *final_fname, double begin_point, double end_point, int *error, int save_end_point)

Function Documentation

int splt_pl_check_plugin_is_for_file ( splt_state state,
int *  error 
)

Plugin API: check if file can be handled by this plugin.

Definition at line 3724 of file mp3.c.

References splt_state::codec, SPLT_FALSE, splt_mp3_init(), splt_t_get_filename_to_split(), and SPLT_TRUE.

Here is the call graph for this function:

void splt_pl_dewrap ( splt_state state,
int  listonly,
const char *  dir,
int *  error 
)

Plugin API: get wrap files or dewrap.

Definition at line 3760 of file mp3.c.

References splt_w_wrap_free().

Here is the call graph for this function:

void splt_pl_end ( splt_state state,
int *  error 
)
void splt_pl_init ( splt_state state,
int *  error 
)

Plugin API: Initialize this plugin.

Definition at line 3680 of file mp3.c.

References splt_mp3_init(), and splt_t_get_filename_to_split().

Here is the call graph for this function:

int splt_pl_scan_silence ( splt_state state,
int *  error 
)

Plugin API: Scan for silence.

Definition at line 3793 of file mp3.c.

References splt_state::codec, SPLT_OPT_PARAM_MIN_LENGTH, SPLT_OPT_PARAM_OFFSET, and SPLT_OPT_PARAM_THRESHOLD.

void splt_pl_search_syncerrors ( splt_state state,
int *  error 
)

Plugin API: search for syncerrors.

Definition at line 3753 of file mp3.c.

void splt_pl_set_original_tags ( splt_state state,
int *  error 
)

Plugin API: Read the original Tags from the file.

Definition at line 3810 of file mp3.c.

References splt_t_get_filename_to_split().

Here is the call graph for this function:

void splt_pl_set_plugin_info ( splt_plugin_info info,
int *  error 
)

Plugin API: returns the plugin infos (name, version, extension)

alloced data in splt_plugin_info will be freed by splt_t_state_free() at the end of the program

Definition at line 3645 of file mp3.c.

int splt_pl_simple_split ( splt_state state,
char *  output_fname,
off_t  begin,
off_t  end 
)

Plugin API: Output a portion of the file.

Definition at line 3773 of file mp3.c.

References splt_state::codec, and SPLT_FALSE.