Re: crash with assertion (?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux