libmsx
C library for MSX
Loading...
Searching...
No Matches
opll_buf.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 */
22#pragma once
23
24#ifndef OPLL_BUF_H_
25#define OPLL_BUF_H_
26
27#include <opll.h>
28
29#include <stdbool.h>
30
52extern uint8_t opll_buffer[64];
53
59void OPLL_init(void);
60
77void OPLL_put(uint8_t reg, uint8_t val);
78
86void OPLL_rhythm_mode(bool on);
87
102void OPLL_rhythm(uint8_t val);
103
115void OPLL_stop(struct OPLL * opll);
116
127void OPLL_play(struct OPLL * opll);
128
131#endif // OPLL_BUF_H_
void OPLL_init(void)
MSX Initialize internal buffer for OPLL.
void OPLL_stop(struct OPLL *opll)
MSX Stop (Pause) playing sound on OPLL
void OPLL_put(uint8_t reg, uint8_t val)
MSX Put a pair of OPLL register number and its value to the internal buffer.
void OPLL_rhythm(uint8_t val)
MSX Key-on/off RHYTHM set.
void OPLL_play(struct OPLL *opll)
MSX Play sound on OPLL
uint8_t opll_buffer[64]
MSX Cache of OPLL registers.
void OPLL_rhythm_mode(bool on)
MSX Turn RHYTHM mode on/off.
OPLL Handle.
Definition opll.h:74
Device interface for MSX-MUSIC (OPLL).