Correct debug tracking for saa1099SetRoute()

This commit is contained in:
Barry Harris 2012-05-23 11:57:10 +00:00
parent e11a25e7cc
commit 142cb722e6
1 changed files with 1 additions and 0 deletions

View File

@ -378,6 +378,7 @@ void saa1099SetRoute(INT32 chip, INT32 nIndex, double nVolume, INT32 nRouteDir)
#if defined FBA_DEBUG
if (!DebugSnd_SAA1099Initted) bprintf(PRINT_ERROR, _T("saa1099SetRoute called without init\n"));
if (chip > nNumChips) bprintf(PRINT_ERROR, _T("saa1099SetRoute called with invalid chip %x\n"), chip);
if (nIndex < 0 || nIndex > 1) bprintf(PRINT_ERROR, _T("saa1099SetRoute called with invalid index %i\n"), nIndex);
#endif
saa1099_state *saa = &chips[chip];