libsmf
smf_track_struct Struct Reference

Represents a single track. More...

#include <smf.h>

Data Fields

smf_tsmf
 
int track_number
 
int number_of_events
 
void * file_buffer
 These are private fields using only by loading and saving routines.
 
int file_buffer_length
 
int last_status
 
int next_event_offset
 Private, used by smf.c.
 
int next_event_number
 
int time_of_next_event
 Absolute time of next event on events_queue.
 
GPtrArray * events_array
 
void * user_pointer
 API consumer is free to use this for whatever purpose.
 

Detailed Description

Represents a single track.

Definition at line 271 of file smf.h.

Field Documentation

◆ events_array

GPtrArray* smf_track_struct::events_array

◆ file_buffer

void* smf_track_struct::file_buffer

These are private fields using only by loading and saving routines.

Definition at line 278 of file smf.h.

Referenced by smf_load_from_memory().

◆ file_buffer_length

int smf_track_struct::file_buffer_length

Definition at line 279 of file smf.h.

Referenced by smf_load_from_memory().

◆ last_status

int smf_track_struct::last_status

Definition at line 280 of file smf.h.

◆ next_event_number

int smf_track_struct::next_event_number

◆ next_event_offset

int smf_track_struct::next_event_offset

Private, used by smf.c.

Offset into buffer, used in parse_next_event().

Definition at line 284 of file smf.h.

Referenced by smf_load_from_memory().

◆ number_of_events

◆ smf

◆ time_of_next_event

int smf_track_struct::time_of_next_event

Absolute time of next event on events_queue.

Definition at line 288 of file smf.h.

Referenced by smf_find_track_with_next_event(), smf_rewind(), and smf_track_get_next_event().

◆ track_number

int smf_track_struct::track_number

◆ user_pointer

void* smf_track_struct::user_pointer

API consumer is free to use this for whatever purpose.

NULL in freshly allocated track. Note that tracks might be deallocated not only explicitly, by calling smf_track_delete(), but also implicitly, e.g. when calling smf_delete() with tracks still added to the smf; there is no mechanism for libsmf to notify you about removal of the track.

Definition at line 295 of file smf.h.


The documentation for this struct was generated from the following file: