libmsx
C library for MSX
Loading...
Searching...
No Matches
audio.h
Go to the documentation of this file.
1// -*- coding: utf-8-unix -*-
2/*
3 * Copyright (c) 2021-2024 Daishi Mori (mori0091)
4 *
5 * This software is released under the MIT License.\n
6 * See https://github.com/mori0091/libmsx/blob/main/LICENSE
7 *
8 * GitHub libmsx project\n
9 * https://github.com/mori0091/libmsx
10 */
24#ifndef AUDIO_H_
25#define AUDIO_H_
26
27#include <stdbool.h>
28#include <stdint.h>
29
68void audio_init(void);
69
73void audio_start(void);
74
78void audio_pause(void);
79
85bool audio_is_paused(void);
86
90void audio_stop(void);
91
125void audio_play(void);
126
134
145void audio_set_bgm_frequency(uint8_t freq);
146
153
160
167
175void audio_set_repeat(bool repeat);
176
189#endif // AUDIO_H_
void audio_pause(void)
MSX Pause music.
void audio_set_repeat(bool repeat)
MSX Turn on/off the auto-repeat of the BGM.
void audio_start(void)
MSX Start / Resume music.
uint8_t audio_get_bgm_frequency(void)
MSX Return replayer frequency of the background music.
bool audio_is_playing_bgm(void)
MSX Return whether BGM is playing or not.
bool audio_is_playing(void)
MSX Return whether BGM and/or SFX is playing or not.
void audio_set_bgm_frequency(uint8_t freq)
MSX Force replayer frequency of the background music.
bool audio_is_paused(void)
MSX Return whether paused or not.
void audio_stop(void)
MSX Stop music.
void audio_init(void)
MSX Initialize the libmsx audio replayer.
bool audio_is_playing_sfx(void)
MSX Return whether SFX is playing or not.
void audio_play(void)
MSX Main routine of the libmsx audio replayer.