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-2025 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 */
22#ifndef AUDIO_H_
23#define AUDIO_H_
24
25#include <stdbool.h>
26#include <stdint.h>
27
66void audio_init(void);
67
71void audio_start(void);
72
76void audio_pause(void);
77
83bool audio_is_paused(void);
84
88void audio_stop(void);
89
123void audio_play(void);
124
132
143void audio_set_bgm_frequency(uint8_t freq);
144
151
158
165
173void audio_set_repeat(bool repeat);
174
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.