libmsx
C library for MSX
|
The libmsx audio format 0 (LA0) decoder. More...
#include <audio.h>
#include <audio_dec.h>
#include <memfile.h>
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
Go to the source code of this file.
Functions | |
int | la0_open_mem (MemFile *mf, const uint8_t *loc, size_t size) |
MSX Open LA0 file stored in ROM / RAM. | |
int | la0_open_bmem (MemFile *mf, bmemptr_t loc, uint32_t size) |
MSX Open LA0 file stored in banked memory (MegaROM). | |
int | la0_open_resource (MemFile *mf, const char *path) |
MSX Open LA0 file stored as named resources in banked memory (MegaROM). | |
void | la0_set_bgm (uint8_t idx, MemFile *mf) |
MSX Set a song in the LA0 file to the LA0 audio decoder, as background music (BGM). | |
void | la0_set_sfx (uint8_t idx, MemFile *mf) |
MSX Set a song in the LA0 file to the LA0 audio decoder, as sound effects (SFX). | |
void | la0_set_sfx_with_priority (uint8_t idx, MemFile *mf, uint8_t priority) |
MSX Set a song in the LA0 file to the LA0 audio decoder, as sound effects (SFX). | |
uint8_t | la0_get_bgm_frequency (void) |
MSX Return default frequency of the current background music. | |
uint16_t | la0_get_bgm_total_samples (void) |
MSX Return the total number of BGM samples. | |
uint16_t | la0_get_bgm_loop_samples (void) |
MSX Return the number of samples in the loop portion of BGM. | |
uint8_t | la0_get_bgm_loop_counter (void) |
MSX Return the loop counter value. | |
Variables | |
const AudioDecoder | LA0_BGM_DECODER |
LA0 BGM decoder. | |
const AudioDecoder | LA0_SFX_DECODER |
LA0 SFX decoder. | |
The libmsx audio format 0 (LA0) decoder.
Definition in file la0.h.