libmsx
C library for MSX
|
NDP - NDP sound driver. More...
#include <memfile.h>
Go to the source code of this file.
Data Structures | |
struct | NDPFile |
MSX Container of an opened NDP song data. More... | |
Typedefs | |
typedef struct NDPFile | NDPFile |
MSX Container of an opened NDP song data. | |
Functions | |
void | NDP_init (void) |
MSX Initialize the NDP sound driver. | |
uint16_t | NDP_version (void) |
MSX Return the version code of the NDP sound driver. | |
void | NDP_play (void) |
MSX Main routine of the NDP sound driver. | |
void | NDP_start (void) |
MSX Start / Resume music. | |
void | NDP_pause (void) |
MSX Pause music. | |
bool | NDP_is_paused (void) |
MSX Return whether paused or not. | |
void | NDP_stop (void) |
MSX Stop music. | |
void | NDP_set_volume (uint8_t vol) |
MSX Set maximum main-volume. | |
void | NDP_fadeout (uint8_t wait) |
MSX Fade-out and stop music. | |
void | NDP_fadein (uint8_t wait) |
MSX Fade-in and start music. | |
bool | NDP_is_playing (void) |
MSX Return whether BGM is playing or not. | |
uint8_t | NDP_get_track_status (void) |
MSX Return status for each tracks. | |
uint8_t | NDP_get_loop_counter (void) |
MSX Return the loop counter value. | |
int | NDP_open_mem (NDPFile *ndp, const uint8_t *loc, size_t size) |
MSX Open NDP song data stored in ROM / RAM. | |
int | NDP_open_bmem (NDPFile *ndp, bmemptr_t loc, uint32_t size) |
MSX Open NDP song data stored in banked memory (MegaROM). | |
int | NDP_open_resource (NDPFile *ndp, const char *path) |
MSX Open NDP file stored as named resources in banked memory (MegaROM). | |
bool | NDP_set_bgm (NDPFile *ndp) |
MSX Setup the NDP song data to NDP sound driver. | |
bool | NDP_load_bgm (NDPFile *ndp, uint8_t *buf, size_t buf_size) |
MSX Load and setup the NDP song data to NDP sound driver. | |
bool | NDP_has_metadata (NDPFile *ndp) |
MSX Returns whether or not there is metadata in the NDP song data. | |
size_t | NDP_read_metadata (NDPFile *ndp, uint8_t *buf, size_t buf_size) |
MSX Read metadata stored in NDP song data. | |
NDP - NDP sound driver.
Definition in file NDP.h.