mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix up the sound restart code
This commit is contained in:
parent
c8e1e7942a
commit
0952af5529
1 changed files with 4 additions and 4 deletions
|
@ -663,16 +663,16 @@ DSOUND_LockBuffer (qboolean lockit)
|
|||
if (hresult != DSERR_BUFFERLOST) {
|
||||
Sys_Printf
|
||||
("S_TransferStereo16: DS::Lock Sound Buffer Failed\n");
|
||||
S_Shutdown ();
|
||||
S_Startup ();
|
||||
SNDDMA_Shutdown ();
|
||||
SNDDMA_Init ();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (++reps > 10000) {
|
||||
Sys_Printf
|
||||
("S_TransferStereo16: DS: couldn't restore buffer\n");
|
||||
S_Shutdown ();
|
||||
S_Startup ();
|
||||
SNDDMA_Shutdown ();
|
||||
SNDDMA_Init ();
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue