--- hatari/src/includes/sound.h 2019/04/01 07:14:48 1.1.1.9 +++ hatari/src/includes/sound.h 2019/04/09 08:49:32 1.1.1.11 @@ -14,12 +14,13 @@ /* definitions common for all sound rendering engines */ -#define MIXBUFFER_SIZE 8192 /* Size of circular buffer to store sample to (44Khz) */ +#define MIXBUFFER_SIZE 16384 /* Size of circular buffer to store sample to (44Khz) */ -extern Uint8 SoundRegs[ 14 ]; /* store YM regs 0 to 13 */ +extern Uint8 SoundRegs[ 14 ]; /* store YM regs 0 to 13 */ extern int nGeneratedSamples; extern bool bEnvelopeFreqFlag; extern Sint16 MixBuffer[MIXBUFFER_SIZE][2]; +extern bool Sound_BufferIndexNeedReset; /* STSound sound renderer active */ #include @@ -50,12 +51,13 @@ extern void Sound_Init(void); extern void Sound_Reset(void); extern void Sound_ResetBufferIndex(void); extern void Sound_MemorySnapShot_Capture(bool bSave); -extern void Sound_Update(void); +extern void Sound_Update(bool FillFrame); extern void Sound_Update_VBL(void); extern void Sound_WriteReg( int reg , Uint8 data ); extern bool Sound_BeginRecording(char *pszCaptureFileName); extern void Sound_EndRecording(void); extern bool Sound_AreWeRecording(void); +extern void Sound_SetYmVolumeMixing(void); #endif /* HATARI_SOUND_H */