ptttl v0.2.0
C implementation of a PTTTL parser. PTTTL is a superset of NOKIA's RTTTL that adds polyphony & vibrato.
|
#include <ptttl_parser.h>
Public Attributes | |
int(* | read )(char *input_char) |
int(* | seek )(uint32_t position) |
Holds function pointers that make up an interface for reading PTTTL source from various locations (e.g. from memory, or from a file)
int(* ptttl_parser_input_iface_t::read) (char *input_char) |
Callback function to fetch the next character of PTTTL/RTTTL source
input_char | Pointer to location to store fetched PTTTL/RTTTL source character |
int(* ptttl_parser_input_iface_t::seek) (uint32_t position) |
Callback function to seek to an absolute position within the input text
position | 0-based position to seek to. For example, if the position is 0, then the next 'read' call should return the first character of the input text, and if the position is 23, then the next 'read' call should return the 24th character of the input text, and so on. |