Functions | |
splt_code | mp3splt_set_filename_to_split (splt_state *state, const char *filename) |
splt_code | mp3splt_set_path_of_split (splt_state *state, const char *path_of_split) |
const char * | mp3splt_get_filename_to_split (splt_state *state) |
splt_code | mp3splt_set_m3u_filename (splt_state *state, const char *m3u_filename) |
splt_code | mp3splt_set_silence_log_filename (splt_state *state, const char *filename) |
splt_code | mp3splt_set_silence_full_log_filename (splt_state *state, const char *filename) |
splt_code mp3splt_set_filename_to_split | ( | splt_state * | state, |
const char * | filename | ||
) |
Sets the input filename to split.
[in] | state | Main state. |
[in] | filename | Input filename to be split. |
splt_code mp3splt_set_path_of_split | ( | splt_state * | state, |
const char * | path_of_split | ||
) |
Sets the output directory where the split files will be created.
[in] | state | Main state. |
[in] | path_of_split | Output directory for the generated files. |
const char* mp3splt_get_filename_to_split | ( | splt_state * | state | ) |
Returns the filename to be split from the state
.
It is useful after importing a CUE file that provides a filename with the FILE tag.
[in] | state | Main state. |
splt_code mp3splt_set_m3u_filename | ( | splt_state * | state, |
const char * | m3u_filename | ||
) |
Output filename for a M3U file that will be created in the output path.
The M3U file will contain all the split files. It will not be created if this function is not called.
[in] | state | Main state. |
[in] | m3u_filename | M3U filename. |
splt_code mp3splt_set_silence_log_filename | ( | splt_state * | state, |
const char * | filename | ||
) |
Log filename for the SPLT_OPTION_SILENCE_MODE split mode that will be created.
The log filename is useful to find out the silence splitpoints with different parameters without having to detect silence every time. Note that if changing the SPLT_OPT_PARAM_MIN_LENGTH or SPLT_OPT_PARAM_THRESHOLD or the input filename, the silence detection will still need be to be recomputed.
By default, the filename is mp3splt.log
.
[in] | state | Main state. |
[in] | filename | Log filename when detecting splitpoints from silence. |
splt_code mp3splt_set_silence_full_log_filename | ( | splt_state * | state, |
const char * | filename | ||
) |
Full log filename for the SPLT_OPTION_SILENCE_MODE split mode that will be created.
The full log filename is useful to draw the amplitude wave of the input file (in dB) in order to choose a threshold. If this function is not called, no full log is written.
Example of plotting the full log file with gnuplot:
[in] | state | Main state. |
[in] | filename | Full log filename when detecting splitpoints from silence. |