Lockbuffer, return null when fails.

This commit is contained in:
Dabb 2000-12-31 15:09:07 +00:00
parent 5ba9c66816
commit 587ed5cc3f

View file

@ -714,7 +714,7 @@ DSOUND_LockBuffer(qboolean lockit)
("S_TransferStereo16: DS::Lock Sound Buffer Failed\n"); ("S_TransferStereo16: DS::Lock Sound Buffer Failed\n");
S_Shutdown (); S_Shutdown ();
S_Startup (); S_Startup ();
return; return NULL;
} }
if (++reps > 10000) { if (++reps > 10000) {
@ -722,7 +722,7 @@ DSOUND_LockBuffer(qboolean lockit)
("S_TransferStereo16: DS: couldn't restore buffer\n"); ("S_TransferStereo16: DS: couldn't restore buffer\n");
S_Shutdown (); S_Shutdown ();
S_Startup (); S_Startup ();
return; return NULL;
} }
} }
} else { } else {