blob: a0561565b9f380ce4f73451259d866214b8fc5fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef LIBOPNA_OPNA_H_INCLUDED
#define LIBOPNA_OPNA_H_INCLUDED
#include "opnafm.h"
#include "opnassg.h"
#include "opnadrum.h"
#include "opnaadpcm.h"
#ifdef __cplusplus
extern "C" {
#endif
struct opna {
struct opna_fm fm;
struct opna_ssg ssg;
struct opna_drum drum;
struct opna_adpcm adpcm;
struct opna_ssg_resampler resampler;
};
void opna_reset(struct opna *opna);
void opna_writereg(struct opna *opna, unsigned reg, unsigned val);
void opna_mix(struct opna *opna, int16_t *buf, unsigned samples);
#ifdef __cplusplus
}
#endif
#endif // LIBOPNA_OPNA_H_INCLUDED
|