Browse code

[NCSF] Changes to the Sound View debug window: * No longer has the hold/busy items. * Source Address replaced with State.

Naram Qashat authored on 2014/10/23 21:40:50
Showing 3 changed files
... ...
@@ -277,9 +277,6 @@ void XSFConfig_NCSF::RefreshSoundView()
277 277
 				buf = L"R" + wstringify(chn.reg.panning - 64);
278 278
 			SetDlgItemTextW(hDlg, IDC_SOUND0PAN + chanId, buf.c_str());
279 279
 
280
-			SetDlgItemTextW(hDlg, IDC_SOUND0HOLD + chanId, L"---");
281
-			SetDlgItemTextW(hDlg, IDC_SOUND0BUSY + chanId, L"---");
282
-
283 280
 			static const std::wstring modes[] = { L"Manual", L"Loop Infinite", L"One-Shot", L"Prohibited" };
284 281
 			SetDlgItemTextW(hDlg, IDC_SOUND0REPEATMODE + chanId, (wstringify(chn.reg.repeatMode) + L" (" + modes[chn.reg.repeatMode] + L")").c_str());
285 282
 
... ...
@@ -301,7 +298,8 @@ void XSFConfig_NCSF::RefreshSoundView()
301 298
 				SetDlgItemTextW(hDlg, IDC_SOUND0FORMAT + chanId, buf.c_str());
302 299
 			}
303 300
 
304
-			SetDlgItemTextW(hDlg, IDC_SOUND0SAD + chanId, L"---");
301
+			static const std::wstring states[] = { L"NONE", L"START", L"ATTACK", L"DECAY", L"SUSTAIN", L"RELEASE" };
302
+			SetDlgItemTextW(hDlg, IDC_SOUND0STATE + chanId, states[chn.state].c_str());
305 303
 
306 304
 			SetDlgItemTextW(hDlg, IDC_SOUND0PNT + chanId, (L"samp #" + wstringify(chn.reg.loopStart)).c_str());
307 305
 
... ...
@@ -321,11 +319,9 @@ void XSFConfig_NCSF::RefreshSoundView()
321 319
 			ProgressSetPosImmediate(hDlg, IDC_SOUND0VOLBAR + chanId, 0);
322 320
 			SetDlgItemTextW(hDlg, IDC_SOUND0VOL + chanId, L"---");
323 321
 			SetDlgItemTextW(hDlg, IDC_SOUND0PAN + chanId, L"---");
324
-			SetDlgItemTextW(hDlg, IDC_SOUND0HOLD + chanId, L"---");
325
-			SetDlgItemTextW(hDlg, IDC_SOUND0BUSY + chanId, L"---");
326 322
 			SetDlgItemTextW(hDlg, IDC_SOUND0REPEATMODE + chanId, L"---");
327 323
 			SetDlgItemTextW(hDlg, IDC_SOUND0FORMAT + chanId, L"---");
328
-			SetDlgItemTextW(hDlg, IDC_SOUND0SAD + chanId, L"---");
324
+			SetDlgItemTextW(hDlg, IDC_SOUND0STATE + chanId, L"NONE");
329 325
 			SetDlgItemTextW(hDlg, IDC_SOUND0PNT + chanId, L"---");
330 326
 			SetDlgItemTextW(hDlg, IDC_SOUND0TMR + chanId, L"---");
331 327
 			SetDlgItemTextW(hDlg, IDC_SOUND0POSLEN + chanId, L"---");
332 328
Binary files a/src/in_ncsf/in_ncsf.rc and b/src/in_ncsf/in_ncsf.rc differ
333 329
Binary files a/src/in_ncsf/resource.h and b/src/in_ncsf/resource.h differ