fix PAL sound stuttering (Issue 101), multiple snapshots now work (Issues 90/99)

This commit is contained in:
dborth 2009-05-01 00:51:08 +00:00
parent f30e8af9e9
commit e5aad8b802
4 changed files with 7 additions and 5 deletions

View File

@ -261,7 +261,7 @@ int main(int argc, char *argv[])
cleanSFMDATA(); // clear state data cleanSFMDATA(); // clear state data
FCEUI_SetSoundQuality(1); // 0 - low, 1 - high, 2 - high (alt.) FCEUI_SetSoundQuality(1); // 0 - low, 1 - high, 2 - high (alt.)
FCEUI_SetVidSystem(GCSettings.timing); // causes a small 'pop' in the audio int currentTiming = 0;
while (1) // main loop while (1) // main loop
{ {
@ -277,6 +277,9 @@ int main(int argc, char *argv[])
else else
MainMenu(MENU_GAME); MainMenu(MENU_GAME);
if(currentTiming != GCSettings.timing)
FCEUI_SetVidSystem(GCSettings.timing); // causes a small 'pop' in the audio
videoReset = -1; videoReset = -1;
currentMode = GCSettings.render; currentMode = GCSettings.render;
ConfigRequested = 0; ConfigRequested = 0;

View File

@ -32,9 +32,9 @@ enum {
}; };
enum { enum {
FILE_ROM,
FILE_RAM, FILE_RAM,
FILE_STATE, FILE_STATE,
FILE_ROM,
FILE_FDSBIOS, FILE_FDSBIOS,
FILE_CHEAT, FILE_CHEAT,
FILE_PREF FILE_PREF

View File

@ -312,8 +312,8 @@ void GuiSaveBrowser::Update(GuiTrigger * t)
{ {
saveDate[0]->SetText(NULL); saveDate[0]->SetText(NULL);
saveDate[1]->SetText(NULL); saveDate[1]->SetText(NULL);
saveTime[0]->SetText("New SRAM"); saveTime[0]->SetText("New RAM");
saveTime[1]->SetText("New Snapshot"); saveTime[1]->SetText("New State");
saveType[0]->SetText(NULL); saveType[0]->SetText(NULL);
saveType[1]->SetText(NULL); saveType[1]->SetText(NULL);
savePreviewImg[0]->SetImage(gameSaveBlank); savePreviewImg[0]->SetImage(gameSaveBlank);

View File

@ -2876,7 +2876,6 @@ static int MenuSettingsVideo()
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: case 5: