[alsa-devel] crash with assertion (?)
Clemens Ladisch
clemens at ladisch.de
Tue Sep 7 19:06:05 CEST 2010
IOhannes m zmoelnig wrote:
> i'm requesting my "plughw" device with 44100Hz
> the request is done with something like:
> rate=44100;
> err = snd_pcm_hw_params_set_rate_min(handle, params, &rate, 0);
This requests a sample rate of at least 44100 Hz.
> [...]
> err = snd_pcm_hw_params(handle, params);
>
> what happens:
> in the snd_pcm_hw_params(), my program exits with:
> "interval_inline.h:52: snd_interval_single: Assertion
> `!snd_interval_empty(i)' failed."
You called snd_pcm_hw_params with an invalid params structure.
I'd guess that snd_pcm_hw_params_set_rate_min (or some other
snd_pcm_hw_params_set_*) returned an error.
Regards,
Clemens
More information about the Alsa-devel
mailing list