Patches item #1942258, was opened at 2008-04-14 19:19 Message generated for change (Comment added) made by zmoelnig You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1942258...
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: Open Resolution: None
Priority: 7
Private: No Submitted By: IOhannes m zmölnig (zmoelnig) Assigned to: Miller Puckette (millerpuckette) Summary: jack fixes and enhancements
Initial Comment: the jack-implementation in Pd has several flaws: - maximum number of ports = 32 (hardcoded) - Pd crashes when you request more than 32 channels - jackd has to run before Pd is started - Pd doesn't like jackd quitting - maximum of 2 parallel Pd's connecting to jack - ...
i believe that the attached patch fixes most of these issues: - raises the maximum number of ports to 1024 (this is the maximum number of ports qjackctl allows me to select for the jackd) - when initializing ports, Pd checks whether a port was successfully created; if not it doesn't add more ports but leaves this as the maximum it could get from jackd (no more crashes with high number of ports) - Pd automatically starts a default jackd if none is running yet - when the jackd quits while Pd is running, it sets the jack_client to 0, efficiently preventing hangs. jackd is restarted automatically when selected via the audio-settings - Pd tests the return status when trying to connect to jackd; if it finds that the name is already given it tries alternative names; if initialization failed for other reasons, it just fails.
i have tested this on my debian unstable/testing system that provides libjack-dev 0.109.2-1.1
----------------------------------------------------------------------
Comment By: IOhannes m zmölnig (zmoelnig)
Date: 2008-04-14 19:21
Message: Logged In: YES user_id=564396 Originator: YES
i raised priority a bit, as the current implementation makes Pd unusable with highly multichannel systems (e.g. using 64 channels) and jack
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1942258...