libmp3splt
Splitpoint manipulation

Functions

int mp3splt_append_splitpoint (splt_state *state, long split_value, const char *name, int type)
void mp3splt_erase_all_splitpoints (splt_state *state, int *error)
const splt_pointmp3splt_get_splitpoints (splt_state *state, int *splitpoints_number, int *error)

Function Documentation

int mp3splt_append_splitpoint ( splt_state state,
long  split_value,
const char *  name,
int  type 
)

Sets a new splitpoint.

Parameters:
stateThe central struct libmp3splt keeps all its data in
type
See also:
splt_type_of_splitpoint
Parameters:
split_valueThe position of the split point in 1/100s
nameThe name of the split point
Returns:
The error code of any error that might have occoured

Sets a new splitpoint.

Parameters:
stateThe central data structure this library keeps all its data in
nameThe file name if we want to set it, else NULL
split_valueThe time of this splitpoint in hundreths of seconds. If this walue is LONG_MAX we put the splitpoint to the end of the song (EOF)

Definition at line 494 of file mp3splt.c.

void mp3splt_erase_all_splitpoints ( splt_state state,
int *  error 
)

erase all splitpoints

Parameters:
stateThe central struct libmp3splt keeps all its data in
errorIs filled with the error code of any error that might have occoured

erase all splitpoints

Parameters:
stateThe structure this library keeps all its data in
errorIs set to the error code if any error occours

Definition at line 552 of file mp3splt.c.

const splt_point* mp3splt_get_splitpoints ( splt_state state,
int *  splitpoints_number,
int *  error 
)

returns a pointer to a list of all splitpoints

Parameters:
stateThe central struct libmp3splt keeps all its data in
errorIs filled with the error code of any error that might have occoured
splitpoints_numberThe number of split points in the list
Returns:
A pointer to the split point list

returns a pointer to a list of all splitpoints

Parameters:
stateThe structure this library keeps all its data in
splitpoints_numberWill be set to the number of splitpoints by this function
errorIs set to the error code if any error occours

Definition at line 529 of file mp3splt.c.