NO-OP: backport some libsmf doc and warnings
This commit is contained in:
parent
43158047ed
commit
23e6dd5f6b
|
@ -668,6 +668,7 @@ smf_event_is_tempo_change_or_time_signature(const smf_event_t *event)
|
|||
* from 0 to 1 when you add the second track.
|
||||
* \param smf SMF.
|
||||
* \param format 0 for one track per file, 1 for several tracks per file.
|
||||
* \return 0 if everything went ok, nonzero otherwise.
|
||||
*/
|
||||
int
|
||||
smf_set_format(smf_t *smf, int format)
|
||||
|
@ -690,6 +691,7 @@ smf_set_format(smf_t *smf, int format)
|
|||
* of all the events.
|
||||
* \param smf SMF.
|
||||
* \param ppqn New PPQN.
|
||||
* \return 0 if everything went ok, nonzero otherwise.
|
||||
*/
|
||||
int
|
||||
smf_set_ppqn(smf_t *smf, uint16_t ppqn)
|
||||
|
@ -983,6 +985,7 @@ smf_seek_to_event(smf_t *smf, const smf_event_t *target)
|
|||
/**
|
||||
* Seeks the SMF to the given position. For example, after seeking to 1.0 seconds,
|
||||
* smf_get_next_event will return first event that happens after the first second of song.
|
||||
* \return 0 if everything went ok, nonzero otherwise.
|
||||
*/
|
||||
int
|
||||
smf_seek_to_seconds(smf_t *smf, double seconds)
|
||||
|
@ -1026,6 +1029,7 @@ smf_seek_to_seconds(smf_t *smf, double seconds)
|
|||
/**
|
||||
* Seeks the SMF to the given position. For example, after seeking to 10 pulses,
|
||||
* smf_get_next_event will return first event that happens after the first ten pulses.
|
||||
* \return 0 if everything went ok, nonzero otherwise.
|
||||
*/
|
||||
int
|
||||
smf_seek_to_pulses(smf_t *smf, size_t pulses)
|
||||
|
|
|
@ -375,7 +375,7 @@ void smf_event_remove_from_track(smf_event_t *event);
|
|||
smf_event_t *smf_event_new(void) WARN_UNUSED_RESULT;
|
||||
smf_event_t *smf_event_new_from_pointer(const void *midi_data, size_t len) WARN_UNUSED_RESULT;
|
||||
smf_event_t *smf_event_new_from_bytes(int byte1, int byte2, int byte3) WARN_UNUSED_RESULT;
|
||||
smf_event_t *smf_event_new_textual(int type, const char *text);
|
||||
smf_event_t *smf_event_new_textual(int type, const char *text) WARN_UNUSED_RESULT;
|
||||
void smf_event_delete(smf_event_t *event);
|
||||
|
||||
int smf_event_is_valid(const smf_event_t *event) WARN_UNUSED_RESULT;
|
||||
|
|
Loading…
Reference in New Issue
Block a user