-
Notifications
You must be signed in to change notification settings - Fork 1
/
sound.h
68 lines (48 loc) · 1.7 KB
/
sound.h
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/**
* @file
* @author Miguel Vanhove / Kyuran <[email protected]>
* @author Ludovic Delplanque <[email protected]> for the original version pc-cpc v0.1p (05/11/2002)
* @version 2.0
*
* @section LICENSE
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details at
* https://www.gnu.org/copyleft/gpl.html
*
* @section DESCRIPTION
*
* AY3-8912 emulation
*/
#include "crocods.h"
#ifndef AY8912_H
#define AY8912_H
#define SOUNDV2 OK
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
unsigned short left;
unsigned short right;
} GB_sample_t;
void Reset8912( core_crocods_t *core );
void Write8912( core_crocods_t *core, int r, int v );
int Read8912( core_crocods_t *core, int r );
void Loop8912( core_crocods_t *core, int uS );
BOOL IsWritePSGReg13( core_crocods_t *core );
void SetSound( core_crocods_t *core, int Channel, int Freq, int Volume );
void initSound(core_crocods_t *gb, int r);
void procSound(core_crocods_t *gb, int us);
void crocods_copy_sound_buffer(core_crocods_t *gb, GB_sample_t *dest, unsigned int count);
#ifdef __cplusplus
}
#endif
#endif