mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-10 14:42:06 +00:00
alsa api changed slightly (for the better, though. more consistent)
This commit is contained in:
parent
d85ef28aca
commit
14657882e5
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ qboolean SNDDMA_Init(void)
|
|||
}
|
||||
|
||||
err_msg="audio flush";
|
||||
if ((rc=snd_pcm_flush_channel(pcm_handle, SND_PCM_CHANNEL_PLAYBACK))<0)
|
||||
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)
|
||||
|
@ -122,7 +122,7 @@ qboolean SNDDMA_Init(void)
|
|||
params.buf.block.frags_min=1;
|
||||
params.buf.block.frags_max=-1;
|
||||
// err_msg="audio flush";
|
||||
// if ((rc=snd_pcm_flush_channel(pcm_handle, SND_PCM_CHANNEL_PLAYBACK))<0)
|
||||
// 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)
|
||||
|
|
Loading…
Reference in a new issue