X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=sound.h;h=142d5044665b4c50ff5276cec8255950f7c0cd1d;hb=a384bf449483e62637ce05a60ff4b06730a19934;hp=9cffd4cf16697fa3d14e24e25e09a04e890af96d;hpb=d97315ac0bca825d2d50a44453bc5652946e2c67;p=fceu.git diff --git a/sound.h b/sound.h index 9cffd4c..142d504 100644 --- a/sound.h +++ b/sound.h @@ -36,13 +36,15 @@ typedef struct { extern EXPSOUND GameExpSound; -extern int64 nesincsizeLL; -extern int64 nesincsize; -extern uint8 PSG[]; +//extern int64 nesincsizeLL; +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;