1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-30 21:52:07 +00:00
8bitworkshop/presets/sms-sms-libcv/PSGlib.h
2019-08-07 16:15:50 -04:00

32 lines
947 B
C

/* **************************************************
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);