Patches item #3065109, was opened at 2010-09-13 08:58 Message generated for change (Comment added) made by sf-robot 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: Closed
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: SourceForge Robot (sf-robot)
Date: 2011-01-23 05:20
Message: This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: Miller Puckette (millerpuckette) Date: 2011-01-09 04:33
Message: applied for 0.43
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=3065109...