]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_dma.c
Added sound support to the NetBSD port. Most of the code comes from the original...
[xonotic/darkplaces.git] / snd_dma.c
index 9035546ae72f7f5e18dbb6c8b9e9b32b4843813c..5fa7234f0d5bb7d5194b7f79b735d8eb09daf629 100644 (file)
--- a/snd_dma.c
+++ b/snd_dma.c
@@ -817,12 +817,8 @@ void GetSoundtime(void)
 
 // it is possible to miscount buffers if it has wrapped twice between
 // calls to S_Update.  Oh well.
-#ifdef __sun__
-       soundtime = SNDDMA_GetSamples();
-#else
        samplepos = SNDDMA_GetDMAPos();
 
-
        if (samplepos < oldsamplepos)
        {
                buffers++;                                      // buffer wrapped
@@ -837,7 +833,6 @@ void GetSoundtime(void)
        oldsamplepos = samplepos;
 
        soundtime = buffers*fullsamples + samplepos/shm->channels;
-#endif
 }
 
 void IN_Accumulate (void);