1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-29 14:51:17 +00:00
8bitworkshop/presets/sms-sms-libcv/PSGlib.h

32 lines
947 B
C
Raw Normal View History

2019-08-07 13:26:53 +00:00
/* **************************************************
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);