libopenmpt
0.2.7386-autotools
cross-platform C++ and C library to decode tracked music files
|
Go to the source code of this file.
Classes | |
struct | openmpt_stream_callbacks |
Stream callbacks. More... | |
struct | openmpt_module_initial_ctl |
Typedefs | |
typedef size_t(* | openmpt_stream_read_func )(void *stream, void *dst, size_t bytes) |
Read bytes from stream. More... | |
typedef int(* | openmpt_stream_seek_func )(void *stream, int64_t offset, int whence) |
Seek stream position. More... | |
typedef int64_t(* | openmpt_stream_tell_func )(void *stream) |
Tell stream position. More... | |
typedef struct openmpt_stream_callbacks | openmpt_stream_callbacks |
Stream callbacks. More... | |
typedef void(* | openmpt_log_func )(const char *message, void *user) |
Logging function. More... | |
typedef struct openmpt_module | openmpt_module |
Opaque type representing a libopenmpt module. More... | |
typedef struct openmpt_module_initial_ctl | openmpt_module_initial_ctl |
Functions | |
uint32_t | openmpt_get_library_version (void) |
Get the libopenmpt version number. More... | |
uint32_t | openmpt_get_core_version (void) |
Get the core version number. More... | |
void | openmpt_free_string (const char *str) |
Free a string returned by libopenmpt. More... | |
const char * | openmpt_get_string (const char *key) |
Get library related metadata. More... | |
const char * | openmpt_get_supported_extensions (void) |
Get a list of supported file extensions. More... | |
int | openmpt_is_extension_supported (const char *extension) |
Query whether a file extension is supported. More... | |
void | openmpt_log_func_default (const char *message, void *user) |
Default logging function. More... | |
void | openmpt_log_func_silent (const char *message, void *user) |
Silent logging function. More... | |
double | openmpt_could_open_propability (openmpt_stream_callbacks stream_callbacks, void *stream, double effort, openmpt_log_func logfunc, void *user) |
Roughly scan the input stream to find out whether libopenmpt might be able to open it. More... | |
openmpt_module * | openmpt_module_create (openmpt_stream_callbacks stream_callbacks, void *stream, openmpt_log_func logfunc, void *user, const openmpt_module_initial_ctl *ctls) |
Construct an openmpt_module. More... | |
openmpt_module * | openmpt_module_create_from_memory (const void *filedata, size_t filesize, openmpt_log_func logfunc, void *user, const openmpt_module_initial_ctl *ctls) |
Construct an openmpt_module. More... | |
void | openmpt_module_destroy (openmpt_module *mod) |
Unload a previously created openmpt_module from memory. More... | |
int | openmpt_module_select_subsong (openmpt_module *mod, int32_t subsong) |
Select a sub-song from a multi-song module. More... | |
int | openmpt_module_set_repeat_count (openmpt_module *mod, int32_t repeat_count) |
Set Repeat Count. More... | |
int32_t | openmpt_module_get_repeat_count (openmpt_module *mod) |
Get Repeat Count. More... | |
double | openmpt_module_get_duration_seconds (openmpt_module *mod) |
approximate song duration More... | |
double | openmpt_module_set_position_seconds (openmpt_module *mod, double seconds) |
Set approximate current song position. More... | |
double | openmpt_module_get_position_seconds (openmpt_module *mod) |
Get current song position. More... | |
double | openmpt_module_set_position_order_row (openmpt_module *mod, int32_t order, int32_t row) |
Set approximate current song position. More... | |
int | openmpt_module_get_render_param (openmpt_module *mod, int param, int32_t *value) |
Get render parameter. More... | |
int | openmpt_module_set_render_param (openmpt_module *mod, int param, int32_t value) |
Set render parameter. More... | |
const char * | openmpt_module_get_metadata_keys (openmpt_module *mod) |
Get the list of supported metadata item keys. More... | |
const char * | openmpt_module_get_metadata (openmpt_module *mod, const char *key) |
Get a metadata item value. More... | |
int32_t | openmpt_module_get_current_speed (openmpt_module *mod) |
Get the current speed. More... | |
int32_t | openmpt_module_get_current_tempo (openmpt_module *mod) |
Get the current tempo. More... | |
int32_t | openmpt_module_get_current_order (openmpt_module *mod) |
Get the current order. More... | |
int32_t | openmpt_module_get_current_pattern (openmpt_module *mod) |
Get the current pattern. More... | |
int32_t | openmpt_module_get_current_row (openmpt_module *mod) |
Get the current row. More... | |
int32_t | openmpt_module_get_current_playing_channels (openmpt_module *mod) |
Get the current amount of playing channels. More... | |
float | openmpt_module_get_current_channel_vu_mono (openmpt_module *mod, int32_t channel) |
Get an approximate indication of the channel volume. More... | |
float | openmpt_module_get_current_channel_vu_left (openmpt_module *mod, int32_t channel) |
Get an approximate indication of the channel volume on the front-left speaker. More... | |
float | openmpt_module_get_current_channel_vu_right (openmpt_module *mod, int32_t channel) |
Get an approximate indication of the channel volume on the front-right speaker. More... | |
float | openmpt_module_get_current_channel_vu_rear_left (openmpt_module *mod, int32_t channel) |
Get an approximate indication of the channel volume on the rear-left speaker. More... | |
float | openmpt_module_get_current_channel_vu_rear_right (openmpt_module *mod, int32_t channel) |
Get an approximate indication of the channel volume on the rear-right speaker. More... | |
int32_t | openmpt_module_get_num_subsongs (openmpt_module *mod) |
Get the number of sub-songs. More... | |
int32_t | openmpt_module_get_num_channels (openmpt_module *mod) |
Get the number of pattern channels. More... | |
int32_t | openmpt_module_get_num_orders (openmpt_module *mod) |
Get the number of orders. More... | |
int32_t | openmpt_module_get_num_patterns (openmpt_module *mod) |
Get the number of patterns. More... | |
int32_t | openmpt_module_get_num_instruments (openmpt_module *mod) |
Get the number of instruments. More... | |
int32_t | openmpt_module_get_num_samples (openmpt_module *mod) |
Get the number of samples. More... | |
const char * | openmpt_module_get_subsong_name (openmpt_module *mod, int32_t index) |
Get a sub-song name. More... | |
const char * | openmpt_module_get_channel_name (openmpt_module *mod, int32_t index) |
Get a channel name. More... | |
const char * | openmpt_module_get_order_name (openmpt_module *mod, int32_t index) |
Get an order name. More... | |
const char * | openmpt_module_get_pattern_name (openmpt_module *mod, int32_t index) |
Get a pattern name. More... | |
const char * | openmpt_module_get_instrument_name (openmpt_module *mod, int32_t index) |
Get an instrument name. More... | |
const char * | openmpt_module_get_sample_name (openmpt_module *mod, int32_t index) |
Get a sample name. More... | |
int32_t | openmpt_module_get_order_pattern (openmpt_module *mod, int32_t order) |
Get pattern at order position. More... | |
int32_t | openmpt_module_get_pattern_num_rows (openmpt_module *mod, int32_t pattern) |
Get the number of rows in a pattern. More... | |
uint8_t | openmpt_module_get_pattern_row_channel_command (openmpt_module *mod, int32_t pattern, int32_t row, int32_t channel, int command) |
Get raw pattern content. More... | |
const char * | openmpt_module_format_pattern_row_channel_command (openmpt_module *mod, int32_t pattern, int32_t row, int32_t channel, int command) |
Get formatted (human-readable) pattern content. More... | |
const char * | openmpt_module_highlight_pattern_row_channel_command (openmpt_module *mod, int32_t pattern, int32_t row, int32_t channel, int command) |
Get highlighting information for formatted pattern content. More... | |
const char * | openmpt_module_format_pattern_row_channel (openmpt_module *mod, int32_t pattern, int32_t row, int32_t channel, size_t width, int pad) |
Get formatted (human-readable) pattern content. More... | |
const char * | openmpt_module_highlight_pattern_row_channel (openmpt_module *mod, int32_t pattern, int32_t row, int32_t channel, size_t width, int pad) |
Get highlighting information for formatted pattern content. More... | |
const char * | openmpt_module_get_ctls (openmpt_module *mod) |
Retrieve supported ctl keys. More... | |
const char * | openmpt_module_ctl_get (openmpt_module *mod, const char *ctl) |
Get current ctl value. More... | |
int | openmpt_module_ctl_set (openmpt_module *mod, const char *ctl, const char *value) |
Set ctl value. More... | |
size_t | openmpt_module_read_mono (openmpt_module *mod, int32_t samplerate, size_t count, int16_t *mono) |
Render audio data. More... | |
size_t | openmpt_module_read_stereo (openmpt_module *mod, int32_t samplerate, size_t count, int16_t *left, int16_t *right) |
Render audio data. More... | |
size_t | openmpt_module_read_quad (openmpt_module *mod, int32_t samplerate, size_t count, int16_t *left, int16_t *right, int16_t *rear_left, int16_t *rear_right) |
Render audio data. More... | |
size_t | openmpt_module_read_float_mono (openmpt_module *mod, int32_t samplerate, size_t count, float *mono) |
Render audio data. More... | |
size_t | openmpt_module_read_float_stereo (openmpt_module *mod, int32_t samplerate, size_t count, float *left, float *right) |
Render audio data. More... | |
size_t | openmpt_module_read_float_quad (openmpt_module *mod, int32_t samplerate, size_t count, float *left, float *right, float *rear_left, float *rear_right) |
Render audio data. More... | |
size_t | openmpt_module_read_interleaved_stereo (openmpt_module *mod, int32_t samplerate, size_t count, int16_t *interleaved_stereo) |
Render audio data. More... | |
size_t | openmpt_module_read_interleaved_quad (openmpt_module *mod, int32_t samplerate, size_t count, int16_t *interleaved_quad) |
Render audio data. More... | |
size_t | openmpt_module_read_interleaved_float_stereo (openmpt_module *mod, int32_t samplerate, size_t count, float *interleaved_stereo) |
Render audio data. More... | |
size_t | openmpt_module_read_interleaved_float_quad (openmpt_module *mod, int32_t samplerate, size_t count, float *interleaved_quad) |
Render audio data. More... | |