mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-05 21:38:17 +01:00
fix audio popping
This commit is contained in:
parent
28880cb6af
commit
8b8f465794
@ -140,18 +140,20 @@ int main(int argc, char *argv[])
|
||||
selectedMenu = 1; // change to preferences menu
|
||||
}
|
||||
|
||||
FCEUI_SetSoundQuality(1); // 0 - low, 1 - high, 2 - high (alt.)
|
||||
FCEUI_SetVidSystem(GCSettings.timing); // causes a small 'pop' in the audio
|
||||
|
||||
while (1) // main loop
|
||||
{
|
||||
ResetVideo_Menu();
|
||||
MainMenu(selectedMenu);
|
||||
selectedMenu = 2; // return to game menu from now on
|
||||
|
||||
setFrameTimer(); // set frametimer method before emulation
|
||||
FCEUI_SetVidSystem(GCSettings.timing);
|
||||
SetPalette();
|
||||
FCEUI_SetSoundQuality(1); // 0 - low, 1 - high, 2 - high (alt.)
|
||||
ResetVideo_Emu();
|
||||
|
||||
setFrameTimer(); // set frametimer method before emulation
|
||||
SetPalette();
|
||||
|
||||
static int fskipc=0;
|
||||
|
||||
while(1) // emulation loop
|
||||
|
@ -98,8 +98,6 @@ void StopAudio()
|
||||
{
|
||||
AUDIO_StopDMA();
|
||||
IsPlaying = 0;
|
||||
mixhead = mixtail = 0;
|
||||
memset(soundbuffer, 0, 3840*2);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -179,6 +179,7 @@ VideoOptions ()
|
||||
|
||||
case 4: // timing
|
||||
GCSettings.timing ^= 1;
|
||||
FCEUI_SetVidSystem(GCSettings.timing); // causes a small 'pop' in the audio
|
||||
break;
|
||||
|
||||
case 5: // 8 sprite limit
|
||||
|
Loading…
Reference in New Issue
Block a user