snd_inited = 0;
return 0;
}
-// shm->samplepos = (count.bytes / (shm->samplebits / 8)) & (shm->samples-1);
-// fprintf(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)
+{
+}