X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=snd_alsa_0_5.c;h=082fbe5033d1a633bcd84f47aa30084b069294d3;hb=02f53c0cdf5fdad2256a906e51619db7ceb4deb2;hp=cf48cf40c65afe6673365b464e3d4cd1696b3dd8;hpb=9359f79732bb83c2bb421b49a8d04eb01b0222a0;p=xonotic%2Fdarkplaces.git diff --git a/snd_alsa_0_5.c b/snd_alsa_0_5.c index cf48cf40..082fbe50 100644 --- a/snd_alsa_0_5.c +++ b/snd_alsa_0_5.c @@ -1,7 +1,7 @@ /* - snd_alsa.c + snd_alsa_0_5.c - (description) + Support for ALSA 0.5, the old stable version of ALSA. Copyright (C) 1999,2000 contributors of the QuakeForge project Please see the file "AUTHORS" for a list of contributors @@ -214,9 +214,6 @@ qboolean SNDDMA_Init(void) frag_size/=2; } -// err_msg="audio flush"; -// if ((rc=snd_pcm_channel_flush(pcm_handle, SND_PCM_CHANNEL_PLAYBACK))<0) -// goto error; err_msg="audio munmap"; if ((rc=snd_pcm_munmap(pcm_handle, SND_PCM_CHANNEL_PLAYBACK))<0) goto error; @@ -233,9 +230,6 @@ qboolean SNDDMA_Init(void) params.buf.block.frag_size=frag_size; params.buf.block.frags_min=1; params.buf.block.frags_max=-1; -// err_msg="audio flush"; -// if ((rc=snd_pcm_channel_flush(pcm_handle, SND_PCM_CHANNEL_PLAYBACK))<0) -// goto error; err_msg="audio params"; if ((rc=snd_pcm_channel_params(pcm_handle, ¶ms))<0) goto error; @@ -339,3 +333,19 @@ void SNDDMA_Submit(void) } } +void *S_LockBuffer(void) +{ + return shm->buffer; +} + +void S_UnlockBuffer(void) +{ +} + +void S_Open(void) +{ +} + +void S_Close(void) +{ +}