audioformats.libxm

Undocumented in source.

Members

Aliases

xm_frequency_type_t
alias xm_frequency_type_t = int
Undocumented in source.
xm_loop_type_t
alias xm_loop_type_t = int
Undocumented in source.
xm_waveform_type_t
alias xm_waveform_type_t = int
Undocumented in source.

Enums

XM_LINEAR_FREQUENCIES
anonymousenum XM_LINEAR_FREQUENCIES
Undocumented in source.
XM_NO_LOOP
anonymousenum XM_NO_LOOP
Undocumented in source.
XM_SINE_WAVEFORM
anonymousenum XM_SINE_WAVEFORM
Undocumented in source.

Functions

NOTE_IS_VALID
bool NOTE_IS_VALID(int n)
Undocumented in source. Be warned that the author may not have intended to support it.
XM_INVERSE_LERP
float XM_INVERSE_LERP(float u, float v, float lerp)
Undocumented in source. Be warned that the author may not have intended to support it.
XM_LERP
float XM_LERP(float u, float v, float t)
Undocumented in source. Be warned that the author may not have intended to support it.
XM_SLIDE_TOWARDS
void XM_SLIDE_TOWARDS(float val, float goal, float incr)
Undocumented in source. Be warned that the author may not have intended to support it.
memcpy_pad
void memcpy_pad(void* dst, size_t dst_len, const(void)* src, size_t src_len, size_t offset)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_amiga_frequency
float xm_amiga_frequency(float period)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_amiga_period
float xm_amiga_period(float note)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_arpeggio
void xm_arpeggio(xm_context_t* ctx, xm_channel_context_t* ch, uint8_t param, uint16_t tick)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_autovibrato
void xm_autovibrato(xm_context_t* ctx, xm_channel_context_t* ch)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_check_sanity_postload
int xm_check_sanity_postload(xm_context_t* ctx)

Check a loaded module for errors/inconsistencies.

xm_check_sanity_preload
int xm_check_sanity_preload(const(char)* module_, size_t module_length)

Check the module data for errors/inconsistencies.

xm_create_context_safe
int xm_create_context_safe(xm_context_t** ctxp, char* moddata, size_t moddata_length, uint32_t rate)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_cut_note
void xm_cut_note(xm_channel_context_t* ch)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_envelope_lerp
float xm_envelope_lerp(xm_envelope_point_t* a, xm_envelope_point_t* b, uint16_t pos)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_envelope_tick
void xm_envelope_tick(xm_channel_context_t* ch, xm_envelope_t* env, uint16_t* counter, float* outval)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_envelopes
void xm_envelopes(xm_channel_context_t* ch)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_free_context
void xm_free_context(xm_context_t* context)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_frequency
float xm_frequency(xm_context_t* ctx, float period, float note_offset, float period_offset)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_generate_samples
void xm_generate_samples(xm_context_t* ctx, float* output, size_t numsamples)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_frequency_of_channel
float xm_get_frequency_of_channel(xm_context_t* ctx, uint16_t chn)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_instrument_of_channel
uint16_t xm_get_instrument_of_channel(xm_context_t* ctx, uint16_t chn)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_latest_trigger_of_channel
uint64_t xm_get_latest_trigger_of_channel(xm_context_t* ctx, uint16_t chn)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_latest_trigger_of_instrument
uint64_t xm_get_latest_trigger_of_instrument(xm_context_t* ctx, uint16_t instr)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_latest_trigger_of_sample
uint64_t xm_get_latest_trigger_of_sample(xm_context_t* ctx, uint16_t instr, uint16_t sample)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_loop_count
uint8_t xm_get_loop_count(xm_context_t* context)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_memory_needed_for_context
size_t xm_get_memory_needed_for_context(char* moddata, size_t moddata_length)

Get the number of bytes needed to store the module data in a dynamically allocated blank context.

xm_get_module_length
uint16_t xm_get_module_length(xm_context_t* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_module_name
const(char)* xm_get_module_name(xm_context_t* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_module_name
const(char)* xm_get_module_name(xm_context_t* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_number_of_channels
uint16_t xm_get_number_of_channels(xm_context_t* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_number_of_instruments
uint16_t xm_get_number_of_instruments(xm_context_t* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_number_of_patterns
uint16_t xm_get_number_of_patterns(xm_context_t* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_number_of_rows
uint16_t xm_get_number_of_rows(xm_context_t* ctx, uint16_t pattern)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_number_of_samples
uint16_t xm_get_number_of_samples(xm_context_t* ctx, uint16_t instrument)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_panning_of_channel
float xm_get_panning_of_channel(xm_context_t* ctx, uint16_t chn)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_playing_speed
void xm_get_playing_speed(xm_context_t* ctx, uint16_t* bpm, uint16_t* tempo)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_position
void xm_get_position(xm_context_t* ctx, uint8_t* pattern_index, uint8_t* pattern, uint8_t* row, uint64_t* samples)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_sample_waveform
void* xm_get_sample_waveform(xm_context_t* ctx, uint16_t i, uint16_t s, size_t* size, uint8_t* bits)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_tracker_name
const(char)* xm_get_tracker_name(xm_context_t* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_tracker_name
const(char)* xm_get_tracker_name(xm_context_t* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_get_volume_of_channel
float xm_get_volume_of_channel(xm_context_t* ctx, uint16_t chn)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_handle_note_and_instrument
void xm_handle_note_and_instrument(xm_context_t* ctx, xm_channel_context_t* ch, xm_pattern_slot_t* s)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_is_channel_active
bool xm_is_channel_active(xm_context_t* ctx, uint16_t chn)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_key_off
void xm_key_off(xm_channel_context_t* ch)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_linear_frequency
float xm_linear_frequency(float period)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_linear_period
float xm_linear_period(float note)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_load_module
char* xm_load_module(xm_context_t* ctx, char* moddata, size_t moddata_length, char* mempool)

Populate the context from module data.

xm_mute_channel
bool xm_mute_channel(xm_context_t* ctx, uint16_t channel, bool mute)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_mute_instrument
bool xm_mute_instrument(xm_context_t* ctx, uint16_t instr, bool mute)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_next_of_sample
float xm_next_of_sample(xm_channel_context_t* ch)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_panning_slide
void xm_panning_slide(xm_channel_context_t* ch, uint8_t rawval)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_period
float xm_period(xm_context_t* ctx, float note)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_pitch_slide
void xm_pitch_slide(xm_context_t* ctx, xm_channel_context_t* ch, float period_offset)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_post_pattern_change
void xm_post_pattern_change(xm_context_t* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_row
void xm_row(xm_context_t* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_sample
void xm_sample(xm_context_t* ctx, float* left, float* right)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_sample_at
float xm_sample_at(xm_sample_t* sample, size_t k)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_seek
void xm_seek(xm_context_t* ctx, uint8_t pot, uint8_t row, uint16_t tick)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_set_max_loop_count
void xm_set_max_loop_count(xm_context_t* context, uint8_t loopcnt)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_tick
void xm_tick(xm_context_t* ctx)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_tone_portamento
void xm_tone_portamento(xm_context_t* ctx, xm_channel_context_t* ch)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_tremolo
void xm_tremolo(xm_context_t* ctx, xm_channel_context_t* ch, uint8_t param, uint16_t pos)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_trigger_note
void xm_trigger_note(xm_context_t* ctx, xm_channel_context_t* ch, uint flags)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_update_frequency
void xm_update_frequency(xm_context_t* ctx, xm_channel_context_t* ch)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_vibrato
void xm_vibrato(xm_context_t* ctx, xm_channel_context_t* ch, uint8_t param)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_volume_slide
void xm_volume_slide(xm_channel_context_t* ch, uint8_t rawval)
Undocumented in source. Be warned that the author may not have intended to support it.
xm_waveform
float xm_waveform(xm_context_t* context, xm_waveform_type_t waveform, uint8_t step)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

AMIGA_FREQ_SCALE
enum AMIGA_FREQ_SCALE;
Undocumented in source.
INSTRUMENT_HEADER_LENGTH
enum INSTRUMENT_HEADER_LENGTH;
Undocumented in source.
INSTRUMENT_NAME_LENGTH
enum INSTRUMENT_NAME_LENGTH;
Undocumented in source.
MAX_NUM_ROWS
enum MAX_NUM_ROWS;
Undocumented in source.
MODULE_NAME_LENGTH
enum MODULE_NAME_LENGTH;
Undocumented in source.
NUM_ENVELOPE_POINTS
enum NUM_ENVELOPE_POINTS;
Undocumented in source.
NUM_NOTES
enum NUM_NOTES;
Undocumented in source.
PATTERN_ORDER_TABLE_LENGTH
enum PATTERN_ORDER_TABLE_LENGTH;
Undocumented in source.
SAMPLE_NAME_LENGTH
enum SAMPLE_NAME_LENGTH;
Undocumented in source.
TRACKER_NAME_LENGTH
enum TRACKER_NAME_LENGTH;
Undocumented in source.
XM_DEBUG
enum XM_DEBUG;
Undocumented in source.
XM_DEFENSIVE
enum XM_DEFENSIVE;
Undocumented in source.
XM_LINEAR_INTERPOLATION
enum XM_LINEAR_INTERPOLATION;
Undocumented in source.
XM_SAMPLE_RAMPING_POINTS
enum XM_SAMPLE_RAMPING_POINTS;
Undocumented in source.
XM_TRIGGER_KEEP_ENVELOPE
enum XM_TRIGGER_KEEP_ENVELOPE;
Undocumented in source.
XM_TRIGGER_KEEP_PERIOD
enum XM_TRIGGER_KEEP_PERIOD;
Undocumented in source.
XM_TRIGGER_KEEP_SAMPLE_POSITION
enum XM_TRIGGER_KEEP_SAMPLE_POSITION;
Undocumented in source.
XM_TRIGGER_KEEP_VOLUME
enum XM_TRIGGER_KEEP_VOLUME;
Undocumented in source.

Static variables

amiga_frequencies
uint32_t[13] amiga_frequencies;
Undocumented in source.
multi_retrig_add
float[16] multi_retrig_add;
Undocumented in source.
multi_retrig_multiply
float[16] multi_retrig_multiply;
Undocumented in source.

Structs

xm_channel_context_t
struct xm_channel_context_t
Undocumented in source.
xm_context_t
struct xm_context_t
Undocumented in source.
xm_envelope_point_t
struct xm_envelope_point_t
Undocumented in source.
xm_envelope_t
struct xm_envelope_t
Undocumented in source.
xm_instrument_t
struct xm_instrument_t
Undocumented in source.
xm_module_t
struct xm_module_t
Undocumented in source.
xm_pattern_slot_t
struct xm_pattern_slot_t
Undocumented in source.
xm_pattern_t
struct xm_pattern_t
Undocumented in source.
xm_sample_t
struct xm_sample_t
Undocumented in source.

Meta