mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-07 14:28:18 +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
|
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
|
while (1) // main loop
|
||||||
{
|
{
|
||||||
ResetVideo_Menu();
|
ResetVideo_Menu();
|
||||||
MainMenu(selectedMenu);
|
MainMenu(selectedMenu);
|
||||||
selectedMenu = 2; // return to game menu from now on
|
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();
|
ResetVideo_Emu();
|
||||||
|
|
||||||
|
setFrameTimer(); // set frametimer method before emulation
|
||||||
|
SetPalette();
|
||||||
|
|
||||||
static int fskipc=0;
|
static int fskipc=0;
|
||||||
|
|
||||||
while(1) // emulation loop
|
while(1) // emulation loop
|
||||||
|
@ -98,8 +98,6 @@ void StopAudio()
|
|||||||
{
|
{
|
||||||
AUDIO_StopDMA();
|
AUDIO_StopDMA();
|
||||||
IsPlaying = 0;
|
IsPlaying = 0;
|
||||||
mixhead = mixtail = 0;
|
|
||||||
memset(soundbuffer, 0, 3840*2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -179,6 +179,7 @@ VideoOptions ()
|
|||||||
|
|
||||||
case 4: // timing
|
case 4: // timing
|
||||||
GCSettings.timing ^= 1;
|
GCSettings.timing ^= 1;
|
||||||
|
FCEUI_SetVidSystem(GCSettings.timing); // causes a small 'pop' in the audio
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 5: // 8 sprite limit
|
case 5: // 8 sprite limit
|
||||||
|
Loading…
Reference in New Issue
Block a user