libmsx
C library for MSX
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
audio_cb.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 */
17#ifndef AUDIO_CB_H_
18#define AUDIO_CB_H_
19
20#include <audio_dec.h>
21
22#include <stdint.h>
23
53void audio_cb_bgm_changed(uint8_t song_rate, const AudioDecoder * decoder);
54
71void audio_cb_sfx_changed(uint8_t song_rate, const AudioDecoder * decoder);
72
80void audio_cb_scc_mode(uint8_t mode);
81
84#endif // AUDIO_CB_H_
The audio decoder interface for the libmsx audio replayer.
void audio_cb_scc_mode(uint8_t mode)
MSX Set the replayer to use SCC compatible mode or SCC+ mode.
void audio_cb_sfx_changed(uint8_t song_rate, const AudioDecoder *decoder)
MSX Callback function called by the music loader or decoder when setting or changing the SFX.
void audio_cb_bgm_changed(uint8_t song_rate, const AudioDecoder *decoder)
MSX Callback function called by the music loader or decoder when setting or changing the BGM.
The audio decoder interface.
Definition audio_dec.h:89