back ported the fix for post pre alsa 0.5.0

This commit is contained in:
Bill Currie 2000-03-18 05:06:27 +00:00
parent da635c0fb7
commit 47f1a075fd

View file

@ -179,9 +179,9 @@ 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 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;