Browse code

Updating in_2sf to use a newish version of DeSmuME, 0.9.9 from SVN. Somewhat cleaned up as well, but not everything because it's a pain in the ass.

Naram Qashat authored on 2013/04/18 17:22:55
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,134 +0,0 @@
1
-/* SPU2-X, A plugin for Emulating the Sound Processing Unit of the Playstation 2
2
- * Developed and maintained by the Pcsx2 Development Team.
3
- *
4
- * Original portions from SPU2ghz are (c) 2008 by David Quintana [gigaherz]
5
- *
6
- * SPU2-X is free software: you can redistribute it and/or modify it under the terms
7
- * of the GNU Lesser General Public License as published by the Free Software Found-
8
- * ation, either version 3 of the License, or (at your option) any later version.
9
- *
10
- * SPU2-X is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
11
- * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
- * PURPOSE.  See the GNU Lesser General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU Lesser General Public License
15
- * along with SPU2-X.  If not, see <http://www.gnu.org/licenses/>.
16
- */
17
-
18
-//TODO - need to make a generic way for saving these configs and add in the windows
19
-//rc configurator
20
-
21
-#include "../../types.h"
22
-//#include "Global.h"
23
-#include "Dialogs.h"
24
-
25
-#include "../metaspu.h"
26
-
27
-#include "SoundTouch.h"
28
-
29
-static int SequenceLenMS = 63;
30
-static int SeekWindowMS = 16;
31
-static int OverlapMS = 7;
32
-
33
-// Timestretch Slider Bounds, Min/Max
34
-static const int SequenceLen_Min = 50;
35
-static const int SequenceLen_Max = 90;
36
-
37
-static const int SeekWindow_Min = 10;
38
-static const int SeekWindow_Max = 32;
39
-
40
-static const int Overlap_Min = 3;
41
-static const int Overlap_Max = 25;
42
-
43
-void SoundtouchCfg::ApplySettings( soundtouch::SoundTouch& sndtouch )
44
-{
45
-	sndtouch.setSetting( soundtouch::SETTING_SEQUENCE_MS,	SequenceLenMS );
46
-	sndtouch.setSetting( soundtouch::SETTING_SEEKWINDOW_MS,	SeekWindowMS );
47
-	sndtouch.setSetting( soundtouch::SETTING_OVERLAP_MS,	OverlapMS );
48
-}
49
-
50
-/*static void ClampValues()
51
-{
52
-	Clampify( SequenceLenMS, SequenceLen_Min, SequenceLen_Max );
53
-	Clampify( SeekWindowMS, SeekWindow_Min, SeekWindow_Max );
54
-	Clampify( OverlapMS, Overlap_Min, Overlap_Max );
55
-}*/
56
-
57
-void SoundtouchCfg::ReadSettings()
58
-{
59
-/*	SequenceLenMS	= CfgReadInt( L"SOUNDTOUCH", L"SequenceLengthMS", 50 );
60
-	SeekWindowMS	= CfgReadInt( L"SOUNDTOUCH", L"SeekWindowMS", 15 );
61
-	OverlapMS		= CfgReadInt( L"SOUNDTOUCH", L"OverlapMS", 25 );
62
-
63
-	ClampValues();	*/
64
-}
65
-
66
-void SoundtouchCfg::WriteSettings()
67
-{
68
-	//CfgWriteInt( L"SOUNDTOUCH", L"SequenceLengthMS", SequenceLenMS );
69
-	//CfgWriteInt( L"SOUNDTOUCH", L"SeekWindowMS", SeekWindowMS );
70
-	//CfgWriteInt( L"SOUNDTOUCH", L"OverlapMS", OverlapMS );
71
-}
72
-
73
-//BOOL CALLBACK SoundtouchCfg::DialogProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam)
74
-//{
75
-//	int wmId,wmEvent;
76
-//	wchar_t temp[384]={0};
77
-//
78
-//	switch(uMsg)
79
-//	{
80
-//		case WM_PAINT:
81
-//			return false;
82
-//
83
-//		case WM_INITDIALOG:
84
-//		{
85
-//			INIT_SLIDER( IDC_SEQLEN_SLIDER, SequenceLen_Min, SequenceLen_Max, 20, 5, 1 );
86
-//			INIT_SLIDER( IDC_SEEKWIN_SLIDER, SeekWindow_Min, SeekWindow_Max, 5, 2, 1 );
87
-//			INIT_SLIDER( IDC_OVERLAP_SLIDER, Overlap_Min, Overlap_Max, 3, 2, 1 );
88
-//
89
-//			SendDialogMsg( hWnd, IDC_SEQLEN_SLIDER, TBM_SETPOS, true, SequenceLenMS );
90
-//			SendDialogMsg( hWnd, IDC_SEEKWIN_SLIDER, TBM_SETPOS, true, SeekWindowMS );
91
-//			SendDialogMsg( hWnd, IDC_OVERLAP_SLIDER, TBM_SETPOS, true, OverlapMS );
92
-//		}
93
-//
94
-//		case WM_COMMAND:
95
-//			wmId    = LOWORD(wParam);
96
-//			wmEvent = HIWORD(wParam);
97
-//			// Parse the menu selections:
98
-//			if( wmId == IDOK )
99
-//			{
100
-//				SequenceLenMS	= (int)SendDialogMsg( hWnd, IDC_SEQLEN_SLIDER, TBM_GETPOS, 0, 0 );
101
-//				SeekWindowMS	= (int)SendDialogMsg( hWnd, IDC_SEEKWIN_SLIDER, TBM_GETPOS, 0, 0 );
102
-//				OverlapMS		= (int)SendDialogMsg( hWnd, IDC_OVERLAP_SLIDER, TBM_GETPOS, 0, 0 );
103
-//
104
-//				ClampValues();
105
-//				WriteSettings();
106
-//				EndDialog(hWnd,0);
107
-//			}
108
-//			else if( wmId == IDCANCEL )
109
-//			{
110
-//				EndDialog(hWnd,0);
111
-//			}
112
-//		break;
113
-//
114
-//		case WM_HSCROLL:
115
-//			DoHandleScrollMessage( hWnd, wParam, lParam );
116
-//		break;
117
-//
118
-//		default:
119
-//			return false;
120
-//	}
121
-//	return true;
122
-//}
123
-
124
-void SoundtouchCfg::OpenDialog( HWND hWnd )
125
-{
126
-	//INT_PTR ret;
127
-	//ret = DialogBox( hInstance, MAKEINTRESOURCE(IDD_CONFIG_SOUNDTOUCH), hWnd, (DLGPROC)DialogProc );
128
-	//if(ret==-1)
129
-	//{
130
-	//	MessageBoxEx(GetActiveWindow(), L"Error Opening the Soundtouch advanced dialog.", L"OMG ERROR!", MB_OK, 0);
131
-	//	return;
132
-	//}
133
-	//ReadSettings();
134
-}
Browse code

Cleanup of some warnings, updating modification dates, using nullptr instead of NULL in some cases.

Naram Qashat authored on 2013/03/30 16:17:42
Showing 1 changed files
... ...
@@ -18,7 +18,7 @@
18 18
 //TODO - need to make a generic way for saving these configs and add in the windows
19 19
 //rc configurator
20 20
 
21
-#include "types.h"
21
+#include "../../types.h"
22 22
 //#include "Global.h"
23 23
 #include "Dialogs.h"
24 24
 
Browse code

Import actual code.

Naram Qashat authored on 2013/03/26 02:41:19
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,134 @@
1
+/* SPU2-X, A plugin for Emulating the Sound Processing Unit of the Playstation 2
2
+ * Developed and maintained by the Pcsx2 Development Team.
3
+ *
4
+ * Original portions from SPU2ghz are (c) 2008 by David Quintana [gigaherz]
5
+ *
6
+ * SPU2-X is free software: you can redistribute it and/or modify it under the terms
7
+ * of the GNU Lesser General Public License as published by the Free Software Found-
8
+ * ation, either version 3 of the License, or (at your option) any later version.
9
+ *
10
+ * SPU2-X is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
11
+ * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
+ * PURPOSE.  See the GNU Lesser General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU Lesser General Public License
15
+ * along with SPU2-X.  If not, see <http://www.gnu.org/licenses/>.
16
+ */
17
+
18
+//TODO - need to make a generic way for saving these configs and add in the windows
19
+//rc configurator
20
+
21
+#include "types.h"
22
+//#include "Global.h"
23
+#include "Dialogs.h"
24
+
25
+#include "../metaspu.h"
26
+
27
+#include "SoundTouch.h"
28
+
29
+static int SequenceLenMS = 63;
30
+static int SeekWindowMS = 16;
31
+static int OverlapMS = 7;
32
+
33
+// Timestretch Slider Bounds, Min/Max
34
+static const int SequenceLen_Min = 50;
35
+static const int SequenceLen_Max = 90;
36
+
37
+static const int SeekWindow_Min = 10;
38
+static const int SeekWindow_Max = 32;
39
+
40
+static const int Overlap_Min = 3;
41
+static const int Overlap_Max = 25;
42
+
43
+void SoundtouchCfg::ApplySettings( soundtouch::SoundTouch& sndtouch )
44
+{
45
+	sndtouch.setSetting( soundtouch::SETTING_SEQUENCE_MS,	SequenceLenMS );
46
+	sndtouch.setSetting( soundtouch::SETTING_SEEKWINDOW_MS,	SeekWindowMS );
47
+	sndtouch.setSetting( soundtouch::SETTING_OVERLAP_MS,	OverlapMS );
48
+}
49
+
50
+/*static void ClampValues()
51
+{
52
+	Clampify( SequenceLenMS, SequenceLen_Min, SequenceLen_Max );
53
+	Clampify( SeekWindowMS, SeekWindow_Min, SeekWindow_Max );
54
+	Clampify( OverlapMS, Overlap_Min, Overlap_Max );
55
+}*/
56
+
57
+void SoundtouchCfg::ReadSettings()
58
+{
59
+/*	SequenceLenMS	= CfgReadInt( L"SOUNDTOUCH", L"SequenceLengthMS", 50 );
60
+	SeekWindowMS	= CfgReadInt( L"SOUNDTOUCH", L"SeekWindowMS", 15 );
61
+	OverlapMS		= CfgReadInt( L"SOUNDTOUCH", L"OverlapMS", 25 );
62
+
63
+	ClampValues();	*/
64
+}
65
+
66
+void SoundtouchCfg::WriteSettings()
67
+{
68
+	//CfgWriteInt( L"SOUNDTOUCH", L"SequenceLengthMS", SequenceLenMS );
69
+	//CfgWriteInt( L"SOUNDTOUCH", L"SeekWindowMS", SeekWindowMS );
70
+	//CfgWriteInt( L"SOUNDTOUCH", L"OverlapMS", OverlapMS );
71
+}
72
+
73
+//BOOL CALLBACK SoundtouchCfg::DialogProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam)
74
+//{
75
+//	int wmId,wmEvent;
76
+//	wchar_t temp[384]={0};
77
+//
78
+//	switch(uMsg)
79
+//	{
80
+//		case WM_PAINT:
81
+//			return false;
82
+//
83
+//		case WM_INITDIALOG:
84
+//		{
85
+//			INIT_SLIDER( IDC_SEQLEN_SLIDER, SequenceLen_Min, SequenceLen_Max, 20, 5, 1 );
86
+//			INIT_SLIDER( IDC_SEEKWIN_SLIDER, SeekWindow_Min, SeekWindow_Max, 5, 2, 1 );
87
+//			INIT_SLIDER( IDC_OVERLAP_SLIDER, Overlap_Min, Overlap_Max, 3, 2, 1 );
88
+//
89
+//			SendDialogMsg( hWnd, IDC_SEQLEN_SLIDER, TBM_SETPOS, true, SequenceLenMS );
90
+//			SendDialogMsg( hWnd, IDC_SEEKWIN_SLIDER, TBM_SETPOS, true, SeekWindowMS );
91
+//			SendDialogMsg( hWnd, IDC_OVERLAP_SLIDER, TBM_SETPOS, true, OverlapMS );
92
+//		}
93
+//
94
+//		case WM_COMMAND:
95
+//			wmId    = LOWORD(wParam);
96
+//			wmEvent = HIWORD(wParam);
97
+//			// Parse the menu selections:
98
+//			if( wmId == IDOK )
99
+//			{
100
+//				SequenceLenMS	= (int)SendDialogMsg( hWnd, IDC_SEQLEN_SLIDER, TBM_GETPOS, 0, 0 );
101
+//				SeekWindowMS	= (int)SendDialogMsg( hWnd, IDC_SEEKWIN_SLIDER, TBM_GETPOS, 0, 0 );
102
+//				OverlapMS		= (int)SendDialogMsg( hWnd, IDC_OVERLAP_SLIDER, TBM_GETPOS, 0, 0 );
103
+//
104
+//				ClampValues();
105
+//				WriteSettings();
106
+//				EndDialog(hWnd,0);
107
+//			}
108
+//			else if( wmId == IDCANCEL )
109
+//			{
110
+//				EndDialog(hWnd,0);
111
+//			}
112
+//		break;
113
+//
114
+//		case WM_HSCROLL:
115
+//			DoHandleScrollMessage( hWnd, wParam, lParam );
116
+//		break;
117
+//
118
+//		default:
119
+//			return false;
120
+//	}
121
+//	return true;
122
+//}
123
+
124
+void SoundtouchCfg::OpenDialog( HWND hWnd )
125
+{
126
+	//INT_PTR ret;
127
+	//ret = DialogBox( hInstance, MAKEINTRESOURCE(IDD_CONFIG_SOUNDTOUCH), hWnd, (DLGPROC)DialogProc );
128
+	//if(ret==-1)
129
+	//{
130
+	//	MessageBoxEx(GetActiveWindow(), L"Error Opening the Soundtouch advanced dialog.", L"OMG ERROR!", MB_OK, 0);
131
+	//	return;
132
+	//}
133
+	//ReadSettings();
134
+}