[][src]Function flac_sys::FLAC__metadata_object_cuesheet_resize_tracks

pub unsafe extern "C" fn FLAC__metadata_object_cuesheet_resize_tracks(
    object: *mut FLAC__StreamMetadata,
    new_num_tracks: c_uint
) -> FLAC__bool

Resize the track array.

If the size shrinks, elements will truncated; if it grows, new blank tracks will be added to the end.

\param object A pointer to an existing CUESHEET object. \param new_num_tracks The desired length of the array; may be \c 0. \assert \code object != NULL \endcode \code object->type == FLAC__METADATA_TYPE_CUESHEET \endcode \code (object->data.cue_sheet.tracks == NULL && object->data.cue_sheet.num_tracks == 0) || (object->data.cue_sheet.tracks != NULL && object->data.cue_sheet.num_tracks > 0) \endcode \retval FLAC__bool \c false if memory allocation error, else \c true.