mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-10 09:41:09 +00:00
removed the SNDDMA_GetSamples() call from snd_dma.c:GetSoundtime() for solaris
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@677 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
dbdd675552
commit
5c87f99ad5
1 changed files with 0 additions and 4 deletions
|
@ -862,9 +862,6 @@ static void GetSoundtime (void)
|
||||||
|
|
||||||
// it is possible to miscount buffers if it has wrapped twice between
|
// it is possible to miscount buffers if it has wrapped twice between
|
||||||
// calls to S_Update. Oh well.
|
// calls to S_Update. Oh well.
|
||||||
#ifdef __sun__
|
|
||||||
soundtime = SNDDMA_GetSamples();
|
|
||||||
#else
|
|
||||||
samplepos = SNDDMA_GetDMAPos();
|
samplepos = SNDDMA_GetDMAPos();
|
||||||
|
|
||||||
if (samplepos < oldsamplepos)
|
if (samplepos < oldsamplepos)
|
||||||
|
@ -881,7 +878,6 @@ static void GetSoundtime (void)
|
||||||
oldsamplepos = samplepos;
|
oldsamplepos = samplepos;
|
||||||
|
|
||||||
soundtime = buffers*fullsamples + samplepos/shm->channels;
|
soundtime = buffers*fullsamples + samplepos/shm->channels;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void S_ExtraUpdate (void)
|
void S_ExtraUpdate (void)
|
||||||
|
|
Loading…
Reference in a new issue