mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-22 14:33:51 +00:00
32 lines
947 B
C
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);
|