This popped up on the list earlier... the sample rate gets set _after_ patches are loaded from the command line if -nogui is set. It's on my long list of things to try to fix. In the meantime, as a workaround, if you can namage to delay Pd's loading of the patch, even by a fraction of a second, it should get the proper sample rate.
cheers Miller
On Tue, Nov 06, 2012 at 08:33:22PM +0100, Pierre Massat wrote:
Dear List,
While trying to use oggwrite~ on my RPi I noticed that it complained about being unable to change the samplerate from 0 to 44100. I turns out that Pd launched from the command line with the -nogui flag has a samplerate of 0 ! Adding the "-r 44100" flag doesn't change anything, nor does adding the "-alsa" flag. I wonder what causes this, whether it is a bug or not, and how Pd manages to work fine anyway (the only real problem i've had this far was with oggwrite~)...
Any clue?
Cheers,
Pierre.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list