mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
more error checking ala WildCode
This commit is contained in:
parent
2d796e09f4
commit
cf3aeadb42
1 changed files with 3 additions and 2 deletions
|
@ -540,8 +540,9 @@ SND_GetSoundtime (void)
|
|||
|
||||
// it is possible to miscount buffers if it has wrapped twice between
|
||||
// calls to SND_Update. Oh well.
|
||||
samplepos = snd_output_funcs->pS_O_GetDMAPos ();
|
||||
|
||||
if ((samplepos = snd_output_funcs->pS_O_GetDMAPos ()) == -1)
|
||||
return;
|
||||
|
||||
if (samplepos < oldsamplepos) {
|
||||
buffers++; // buffer wrapped
|
||||
|
||||
|
|
Loading…
Reference in a new issue