Patches item #3065109, was opened at 2010-09-13 01:58 Message generated for change (Settings changed) made by millerpuckette You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=3065109...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: puredata Group: bugfix
Status: Pending Resolution: Accepted
Priority: 7 Private: No Submitted By: IOhannes m zmlnig (zmoelnig) Assigned to: Miller Puckette (millerpuckette) Summary: [bugfix] for crasher bug when setting samplerate in alsa
Initial Comment: on my system (with an "nvidia CK804" onboard soundcard), i get immediate crashes if i select the plughw device (in Pd this shows up as "NVidia CK808 (plug-in)") with 44100Hz (the device only supports 48kHz) [1]
with the help of the alsa-developpers i hunted the problem down; it can be easily worked around if Pd was not using snd_pcm_hw_params_set_rate_min() (without setting a rate_max()) but snd_pcm_hw_params_set_rate_near() instead [2].
this patch does this (it's a one-liner) so now i can select all devices that show up in the media menu without having to fear a crash. (since it's a crasher, i raise the priority)
[1] i usually don't select plughw devices, so i haven't cared so much until now. but it's really annoying if you simply select a configuration in the preferences to make Pd crash)
[2] when alsa-devs were finally able to reproduce my problem, they simply asked "but why don't you just use rate_near()?"
----------------------------------------------------------------------
Comment By: Miller Puckette (millerpuckette)
Date: 2011-01-08 20:33
Message: applied for 0.43
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=3065109...