-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPSGlib.h
31 lines (25 loc) · 947 Bytes
/
PSGlib.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
/* **************************************************
PSGlib - C programming library for the SEGA PSG
( part of devkitSMS - github.com/sverx/devkitSMS )
************************************************** */
#define PSG_STOPPED 0
#define PSG_PLAYING 1
#define SFX_CHANNEL2 #0x01
#define SFX_CHANNEL3 #0x02
#define SFX_CHANNELS2AND3 SFX_CHANNEL2|SFX_CHANNEL3
void PSGPlay (void *song);
void PSGCancelLoop (void);
void PSGPlayNoRepeat (void *song);
void PSGStop (void);
void PSGResume (void);
unsigned char PSGGetStatus (void);
void PSGSetMusicVolumeAttenuation (unsigned char attenuation);
void PSGSFXPlay (void *sfx, unsigned char channels);
void PSGSFXPlayLoop (void *sfx, unsigned char channels);
void PSGSFXCancelLoop (void);
void PSGSFXStop (void);
unsigned char PSGSFXGetStatus (void);
void PSGSilenceChannels (void);
void PSGRestoreVolumes (void);
void PSGFrame (void);
void PSGSFXFrame (void);