mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-26 22:11:30 +00:00
doesn't really work after all. Seems to kill the channel once XRUNs occur :(
This commit is contained in:
parent
d82f4f6b56
commit
cee0850c35
1 changed files with 4 additions and 4 deletions
|
@ -209,8 +209,8 @@ SNDDMA_Init (void)
|
||||||
hwparams.rate = rate;
|
hwparams.rate = rate;
|
||||||
hwparams.channels = stereo + 1;
|
hwparams.channels = stereo + 1;
|
||||||
|
|
||||||
hwparams.fragment_size = 512;
|
hwparams.fragment_size = 32;
|
||||||
hwparams.fragments = 32;
|
hwparams.fragments = 512;
|
||||||
|
|
||||||
err_msg = "snd_pcm_hw_params";
|
err_msg = "snd_pcm_hw_params";
|
||||||
if ((rc = snd_pcm_hw_params (pcm_handle, &hwparams)) < 0) {
|
if ((rc = snd_pcm_hw_params (pcm_handle, &hwparams)) < 0) {
|
||||||
|
@ -220,7 +220,7 @@ SNDDMA_Init (void)
|
||||||
|
|
||||||
memset (&swparams, 0, sizeof (swparams));
|
memset (&swparams, 0, sizeof (swparams));
|
||||||
swparams.start_mode = SND_PCM_START_EXPLICIT;
|
swparams.start_mode = SND_PCM_START_EXPLICIT;
|
||||||
swparams.xrun_mode = SND_PCM_XRUN_NONE;
|
swparams.xrun_mode = SND_PCM_XRUN_FRAGMENT;
|
||||||
swparams.xfer_min = 1;
|
swparams.xfer_min = 1;
|
||||||
swparams.xfer_align = 1;
|
swparams.xfer_align = 1;
|
||||||
err_msg = "snd_pcm_sw_params";
|
err_msg = "snd_pcm_sw_params";
|
||||||
|
@ -347,7 +347,7 @@ SNDDMA_Submit (void)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
printf("umm\n");
|
printf("umm %d\n", state);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue