[−][src]Function flac_sys::FLAC__metadata_object_cuesheet_insert_track
pub unsafe extern "C" fn FLAC__metadata_object_cuesheet_insert_track(
object: *mut FLAC__StreamMetadata,
track_num: c_uint,
track: *mut FLAC__StreamMetadata_CueSheet_Track,
copy: FLAC__bool
) -> FLAC__bool
Insert a track in a CUESHEET block at the given index.
If \a copy is \c true, a copy of the track is stored; otherwise, the object takes ownership of the \a track pointer.
\param object A pointer to an existing CUESHEET object. \param track_num The index at which to insert the track. NOTE: this is not necessarily the same as the track's \a number field. The tracks at and after \a track_num move right one position. To append a track to the end, set \a track_num to \c object->data.cue_sheet.num_tracks . \param track The track to insert. You may safely pass in a const pointer if \a copy is \c true. \param copy See above. \assert \code object != NULL \endcode \code object->type == FLAC__METADATA_TYPE_CUESHEET \endcode \code object->data.cue_sheet.num_tracks >= track_num \endcode \retval FLAC__bool \c false if \a copy is \c true and malloc() fails, else \c true.