libmp3splt
src/cue.c File Reference
#include <string.h>
#include <ctype.h>
#include "splt.h"
#include "cddb_cue_common.h"
#include "cue.h"
Include dependency graph for cue.c:

Go to the source code of this file.

Functions

void splt_cue_export_to_file (splt_state *state, const char *out_file, short stop_at_total_time, int *error)
int splt_cue_put_splitpoints (const char *file, splt_state *state, int *error)

Detailed Description

All that is needed in order to be able to read and write cue files.

Definition in file cue.c.


Function Documentation

void splt_cue_export_to_file ( splt_state state,
const char *  out_file,
short  stop_at_total_time,
int *  error 
)

Export all split points to a cue file.

Parameters:
out_fileThe name of the file to output the split points to
stateThe splt_state structure containing the split points
errorContains the error code if anything goes wrong
stop_at_total_timeIf this parameter is !=0 we don't output splitpoints that lie beyond the end of the audio data. Note that the last splitpoint can be slightly beyond the calculated end of audio data.

Definition at line 611 of file cue.c.

References SPLT_FALSE, splt_t_get_filename_to_split(), and SPLT_TRUE.

Referenced by mp3splt_export_to_cue().

Here is the call graph for this function:

Here is the caller graph for this function:

int splt_cue_put_splitpoints ( const char *  file,
splt_state state,
int *  error 
)

Read in split points from a cue file.

Parameters:
statethe splt_state structure the split points have to be output to.
errorContains the error code if anything goes wrong
fileThe name of the file we have to analyze
Todo:
REM Genre support

Definition at line 425 of file cue.c.

References cue_utils::current_track_type, cue_utils::file, cue_utils::file_has_been_created_by_us, splt_cc_put_filenames_from_tags(), and cue_utils::title_is_filename.

Referenced by mp3splt_put_cue_splitpoints_from_file().

Here is the call graph for this function:

Here is the caller graph for this function: