mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +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) {
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue