This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
#include <sys/mman.h>
#include <sys/shm.h>
#include <sys/wait.h>
-#include <linux/soundcard.h>
+#include <sys/soundcard.h>
#include <stdio.h>
#include "quakedef.h"
snd_inited = 0;
return 0;
}
-// shm->samplepos = (count.bytes / (shm->samplebits / 8)) & (shm->samples-1);
-// Qprintf(stderr, "%d \r", count.ptr);
shm->samplepos = count.ptr / (shm->samplebits / 8);
return shm->samplepos;
{
}
+void *S_LockBuffer(void)
+{
+ return shm->buffer;
+}
+
+void S_UnlockBuffer(void)
+{
+}