This commit is contained in:
Glenn Maynard
2004-02-07 20:50:42 +00:00
parent d2ee4ddb01
commit 8de7ef8496
3 changed files with 10 additions and 4 deletions
@@ -88,6 +88,14 @@ bool Alsa9Buf::SetSWParams()
int err = dsnd_pcm_sw_params_get_xfer_align( swparams, &xfer_align );
ALSA_ASSERT("dsnd_pcm_sw_params_get_xfer_align");
snd_pcm_uframes_t avail_min;
err = dsnd_pcm_sw_params_get_avail_min( swparams, &avail_min );
ALSA_ASSERT("dsnd_pcm_sw_params_get_avail_min");
/* So far, I havn't seen a case where avail_min > xfer_align. If that happens,
* the GetNumFramesToFill will need updating. */
ASSERT( avail_min <= xfer_align );
/* If this fails, we might have bound dsnd_pcm_sw_params_get_xfer_align to
* the old SW API. */
ASSERT( err <= 0 );