From 16605b6fa74946d5d27ff2f218c735603f078c25 Mon Sep 17 00:00:00 2001 From: raven02 Date: Wed, 17 Apr 2013 03:38:17 +0800 Subject: [PATCH 1/3] Toggle Sound Emulation on windows platform --- Windows/WndMainWindow.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Windows/WndMainWindow.cpp b/Windows/WndMainWindow.cpp index 1fe4d5f6f9..b83078fce5 100644 --- a/Windows/WndMainWindow.cpp +++ b/Windows/WndMainWindow.cpp @@ -568,12 +568,14 @@ namespace MainWindow DialogBox(hInst, (LPCTSTR)IDD_CONTROLS, hWnd, (DLGPROC)Controls); DialogManager::EnableAll(TRUE); break; - - case ID_HELP_OPENWEBSITE: + case ID_EMULATION_SOUND: + g_Config.bEnableSound = !g_Config.bEnableSound; + break; + case ID_HELP_OPENWEBSITE: ShellExecute(NULL, "open", "http://www.ppsspp.org/", NULL, NULL, SW_SHOWNORMAL); - break; + break; - case ID_HELP_ABOUT: + case ID_HELP_ABOUT: DialogManager::EnableAll(FALSE); DialogBox(hInst, (LPCTSTR)IDD_ABOUTBOX, hWnd, (DLGPROC)About); DialogManager::EnableAll(TRUE); @@ -716,7 +718,8 @@ namespace MainWindow EnableMenuItem(menu,ID_CPU_DYNAREC,enable); EnableMenuItem(menu,ID_CPU_INTERPRETER,enable); EnableMenuItem(menu,ID_EMULATION_STOP,!enable); - + EnableMenuItem(menu,ID_EMULATION_SOUND,enable); + static const int zoomitems[4] = { ID_OPTIONS_SCREEN1X, ID_OPTIONS_SCREEN2X, From b27c1aeb1c80bd0485ed9b9048d1a13cc0c23e1a Mon Sep 17 00:00:00 2001 From: raven02 Date: Wed, 17 Apr 2013 03:42:07 +0800 Subject: [PATCH 2/3] Add Sound emulation menu item --- Windows/ppsspp.rc | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Windows/ppsspp.rc b/Windows/ppsspp.rc index f6a667b777..dff741a5fb 100644 --- a/Windows/ppsspp.rc +++ b/Windows/ppsspp.rc @@ -226,9 +226,11 @@ BEGIN MENUITEM "R&eset", ID_EMULATION_RESET MENUITEM SEPARATOR MENUITEM "&Run on load", ID_EMULATION_RUNONLOAD + MENUITEM SEPARATOR + MENUITEM "Sound", ID_EMULATION_SOUND, CHECKED MENUITEM SEPARATOR MENUITEM "&Interpreter", ID_CPU_INTERPRETER - MENUITEM "&Dynarec (JIT)", ID_CPU_DYNAREC, CHECKED + MENUITEM "&Dynarec (JIT)", ID_CPU_DYNAREC, CHECKED END POPUP "Debu&g" BEGIN @@ -250,24 +252,25 @@ BEGIN MENUITEM "&Stretch to display", ID_OPTIONS_STRETCHDISPLAY MENUITEM "&Buffered Rendering\tF5", ID_OPTIONS_BUFFEREDRENDERING MENUITEM "&Hardware Transform\tF6", ID_OPTIONS_HARDWARETRANSFORM + MENUITEM "&Vertex Cache", ID_OPTIONS_VERTEXCACHE MENUITEM "&Linear Filtering", ID_OPTIONS_LINEARFILTERING - MENUITEM "Si&mple 2x SSAA", ID_OPTIONS_SIMPLE2XSSAA + MENUITEM "&MipMapping", ID_OPTIONS_MIPMAP + MENUITEM "&Frame Skipping", ID_OPTIONS_FRAMESKIP + MENUITEM "&Simple 2x SSAA", ID_OPTIONS_SIMPLE2XSSAA MENUITEM "&Use VBO", ID_OPTIONS_USEVBO - MENUITEM "&Vertex Cache", ID_OPTIONS_VERTEXCACHE - MENUITEM "&Frame Skip", ID_OPTIONS_FRAMESKIP - MENUITEM "Use Media En&gine", ID_OPTIONS_USEMEDIAENGINE + MENUITEM "&Use Media En&gine", ID_OPTIONS_USEMEDIAENGINE MENUITEM SEPARATOR MENUITEM "&Wireframe (experimental)", ID_OPTIONS_WIREFRAME MENUITEM "&Display Raw Framebuffer", ID_OPTIONS_DISPLAYRAWFRAMEBUFFER MENUITEM "&Show Debug Statistics", ID_OPTIONS_SHOWDEBUGSTATISTICS MENUITEM "&Show FPS", ID_OPTIONS_SHOWFPS MENUITEM SEPARATOR - MENUITEM "Screen &1x\tCtrl+1", ID_OPTIONS_SCREEN1X - MENUITEM "Screen &2x\tCtrl+2", ID_OPTIONS_SCREEN2X - MENUITEM "Screen &3x\tCtrl+3", ID_OPTIONS_SCREEN3X - MENUITEM "Screen &4x\tCtrl+4", ID_OPTIONS_SCREEN4X + MENUITEM "&1x Render Resolution\tCtrl+1", ID_OPTIONS_SCREEN1X + MENUITEM "&2x Render Resolution\tCtrl+2", ID_OPTIONS_SCREEN2X + MENUITEM "&3x Render Resolution\tCtrl+3", ID_OPTIONS_SCREEN3X + MENUITEM "&4x Render Resolution\tCtrl+4", ID_OPTIONS_SCREEN4X MENUITEM SEPARATOR - MENUITEM "&Fast Memory (dynarec, unstable)", ID_OPTIONS_FASTMEMORY + MENUITEM "&Fast Memory (unstable)", ID_OPTIONS_FASTMEMORY MENUITEM "&Ignore illegal reads/writes", ID_OPTIONS_IGNOREILLEGALREADS END POPUP "&Help" From 956e7407544bae66383f318ea6481179b32226f3 Mon Sep 17 00:00:00 2001 From: raven02 Date: Wed, 17 Apr 2013 03:43:00 +0800 Subject: [PATCH 3/3] Add ID_EMULATION_SOUND --- Windows/resource.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Windows/resource.h b/Windows/resource.h index b710526f01..c460f728f4 100644 --- a/Windows/resource.h +++ b/Windows/resource.h @@ -222,6 +222,8 @@ #define ID_OPTIONS_USEMEDIAENGINE 40141 #define ID_FILE_MEMSTICK 40142 #define ID_FILE_LOAD_MEMSTICK 40143 +#define ID_EMULATION_SOUND 40144 +#define ID_OPTIONS_MIPMAP 40145 #define IDC_STATIC -1 // Next default values for new objects