pd will hang and has to be force quit on
pd 0.47.1
Especially when I change the sample block size, it will be triggered. I have tested pd on windows 10 and Mac10.11.6 have same problem.
-
pd 0.47.1 change audio settings will hang program both on Mac and Windows
-
@leowang Hello....... The audio settings should match the hardware of the computer. If you try to set the "wrong" settings it will hang Pd. but as every computer setup is different it is impossible to give advice. Beware.... Delay (ms) and Block Size are not called the same things always in asio and other drivers......
Also, setting too "tight"...... trying to set the latency too low will cause problems.Here is a patch that will set the audio-settings back to a relaxed normal setup........ fix.pd ..... and then you can try again.
Open it and save the settings.......
It is useful if you get into a situation where Pd will not open properly either....... because of the audio settings...... or where in fact it has already hung as soon as you open the audio-settings....... which is why you cannot change them to the correct ones!
David. -
@whale-av hello, I tried your patch on Mac when I stuck. It seems do not help. I still need to force close the app. I will try it on windows pd tomorrow.
In terms of you said "The audio settings should match the hardware of the computer". I cannot totally agree. The reason is that I have jack audio installed on Mac OS. If I select Jack audio in the setting, then you can change the audio frame size. Also it works fine on my Linux Pd.
Secondly, in the official document, it is clearly said: "You can also specify the audio block size in sample frames. This is 64 by default (except for MMIO for which it's 256), and may be 64, 128, or 256. " in pd document chapter 3. It works on default 64 bytes, and it fails and hangs the software when I increase the block size to 128 or 256 etc. Surely, when I increase the block size, I set it more relaxed rather than "tight". It is officially a bug that needs to be fixed.
I am trying to use Pd to test latency so to be able to fiddling the setting is important for me. Any further advice are very welcome.
-
@leowang Yes, you are correct, my mistake.
I am using windows7.
I was in a hurry and didn't explain well. Try opening Pd from the [fix.pd] patch (Pd not already running)..... and then open media-settings, save and close............. and then see if you can change to what you wish.I have 64 samples set (Block size) which is called Buffer size (samples) in my Asio4All driver. I have never changed that setting for Pd, but I have had to change it in the driver for some soundcards.
I am (almost) certain that the driver receives a 64 sample block size quite happily, and then you can set the block size for the cpu / outboard dsp in the driver settings. The driver does the block size conversion, and if you set the size too low in the driver then it will stall, or cause dropouts.I have 2ms (Delay) set in Pd, which is called Buffer Offset in Asio4All. More Buffer offset, hardware or software, can be added in the driver if necessary.
But finding the low latency setting is all trial and error.I have found that setting the offset (Delay ms) in Pd too low will cause dropouts, and setting it too high can cause Pd to stop responding. I think maybe Pd hangs when you open the Audio-settings window......... before you change the Block size......... and so the fix might help?
David. -
-
Making sure that the settings you are going for match your systems capabilities and stopping the dsp before making changes to audio settings tends to be good practice. Stray from that advice, and theres a chance things will work, but more likely to cause glitches and crashes.... from my experience at least...