X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=sound.h;h=142d5044665b4c50ff5276cec8255950f7c0cd1d;hb=a384bf449483e62637ce05a60ff4b06730a19934;hp=fcbcb25b27ac1583ae468326066e297f4c4dc9a3;hpb=971a1d07d2f5b5a6f991ed5712275c04b933734f;p=fceu.git diff --git a/sound.h b/sound.h index fcbcb25..142d504 100644 --- a/sound.h +++ b/sound.h @@ -37,12 +37,14 @@ typedef struct { extern EXPSOUND GameExpSound; //extern int64 nesincsizeLL; -extern int64 nesincsize; -extern uint8 PSG[]; +extern int32 nesincsize; +extern uint8 PSG[0x18]; extern uint32 PSG_base; extern int32 PCMIRQCount; -void SetSoundVariables(void); +extern void (*SetSoundVariables)(void); + +void SetSoundVariables081(void); void PowerSound(void); void ResetSound(void); extern uint8 decvolume[]; @@ -70,11 +72,10 @@ extern int32 fhinc; uint8 FCEU_GetJoyJoy(void); -int GetSoundBuffer(int32 **W); +int GetSoundBuffer(int16 **W); int FlushEmulateSound(void); -extern uint32 Wave[2048]; -extern int32 WaveFinal[2048]; -extern int16 WaveFinalMono[2048]; +extern uint32 Wave[2048+512]; +extern int16 WaveFinalMono[2048+512]; extern uint32 soundtsinc; extern uint32 soundtsoffs;