fix up the sound restart code

This commit is contained in:
Bill Currie 2001-10-12 15:49:50 +00:00
parent c8e1e7942a
commit 0952af5529

View file

@ -663,16 +663,16 @@ DSOUND_LockBuffer (qboolean lockit)
if (hresult != DSERR_BUFFERLOST) { if (hresult != DSERR_BUFFERLOST) {
Sys_Printf Sys_Printf
("S_TransferStereo16: DS::Lock Sound Buffer Failed\n"); ("S_TransferStereo16: DS::Lock Sound Buffer Failed\n");
S_Shutdown (); SNDDMA_Shutdown ();
S_Startup (); SNDDMA_Init ();
return NULL; return NULL;
} }
if (++reps > 10000) { if (++reps > 10000) {
Sys_Printf Sys_Printf
("S_TransferStereo16: DS: couldn't restore buffer\n"); ("S_TransferStereo16: DS: couldn't restore buffer\n");
S_Shutdown (); SNDDMA_Shutdown ();
S_Startup (); SNDDMA_Init ();
return NULL; return NULL;
} }
} }