libmsx
C library for MSX
Loading...
Searching...
No Matches
audio.h File Reference

The libmsx audio replayer. More...

#include <stdbool.h>
#include <stdint.h>
+ Include dependency graph for audio.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void audio_init (void)
 MSX Initialize the libmsx audio replayer.
 
void audio_start (void)
 MSX Start / Resume music.
 
void audio_pause (void)
 MSX Pause music.
 
bool audio_is_paused (void)
 MSX Return whether paused or not.
 
void audio_stop (void)
 MSX Stop music.
 
void audio_play (void)
 MSX Main routine of the libmsx audio replayer.
 
uint8_t audio_get_bgm_frequency (void)
 MSX Return replayer frequency of the background music.
 
void audio_set_bgm_frequency (uint8_t freq)
 MSX Force replayer frequency of the background music.
 
bool audio_is_playing (void)
 MSX Return whether BGM and/or SFX is playing or not.
 
bool audio_is_playing_bgm (void)
 MSX Return whether BGM is playing or not.
 
bool audio_is_playing_sfx (void)
 MSX Return whether SFX is playing or not.
 
void audio_set_repeat (bool repeat)
 MSX Turn on/off the auto-repeat of the BGM.
 

Detailed Description

The libmsx audio replayer.

Definition in file audio.h.