mirror of
https://github.com/libretro/NP2kai.git
synced 2024-10-07 14:53:33 +00:00
35 lines
573 B
C
Executable File
35 lines
573 B
C
Executable File
/**
|
|
* @file rhythm.h
|
|
* @brief Interface of the OPNA rhythm
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "pcmmix.h"
|
|
|
|
typedef struct {
|
|
PMIXHDR hdr;
|
|
PMIXTRK trk[6];
|
|
UINT vol;
|
|
UINT8 trkvol[8];
|
|
} _RHYTHM, *RHYTHM;
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void rhythm_initialize(UINT rate);
|
|
void rhythm_deinitialize(void);
|
|
UINT rhythm_getcaps(void);
|
|
void rhythm_setvol(UINT vol);
|
|
|
|
void rhythm_reset(RHYTHM rhy);
|
|
void rhythm_bind(RHYTHM rhy);
|
|
void rhythm_update(RHYTHM rhy);
|
|
void rhythm_setreg(RHYTHM rhy, UINT reg, REG8 val);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|