plugdata
plugdata copied to clipboard
Unable to change sample rate
Hi,
When I'm loading 44100Hz samples, they are playing too fast in plugdata.
In the original PD, I set the sample rate to 44100 in the audio settings, but in plugdata the sample rate dropdown I think comes from the OS/audio driver and in the case for this laptop, I am unable to change it from 48000 as there are no other options.
On the same laptop I can click '44.1' in original PD and the sounds play as expected. Maybe I overlooked the equivalent setting in plugdata.
Thanks,
Hi @LamptonWorm,
I am not presenting this as a solution by any means, and for all I know vanilla PD does have some clever auto downsampling logic somewhere -- but I couldn't find it where I'd expect it to be, so my thinking is that it probably lives in the audio subsystem you're using, whether that's mmio, wasapi, directx, jack, pulseaudio, coreaudio, this or that or the other thing.
So, would you be able to share the audio device you select in vanilla PD, including the subsystem it's using, and also include information about the one you're trying in PlugData?
AFAICT, PlugData is using JUCE audio on the backend rather than the plugdata-pd (I could be wrong about this -- maybe we're just using JUCE to query the available subsystems and show them in the UI?) - so it's possible that JUCE is getting in the way and preventing the use of a feature that is available to vanilla PD on this machine.
Either way, I'm curious, so please let me know.
Hi,
I am able to change the rate in PlugData if I use device type: DirectSound (but not able to when I select Windows Audio). I can't see any option to select a subsystem in Vanilla PD.
For info, in other DAW like FL Studio I can select the same output device (Realtek) and non-DirectSound types like ASIO, and I can change sample rates from 44100 upwards with no problem. I expected to be able to do the same in PlugData. Using DirectSound the latency becomes too high.
PureData
There is no selection for device type/subsystem Output: Speaker/Headphone (Realtek(R) Audio) Sample rate: 44100 <-- can be changed
PlugData
Audio device type: Windows Audio (Low Latency Mode) Output: Speaker/Headphone (Realtek(R) Audio) Sample rate: 48000 <-- unable to change
Audio device type: Direct Sound Output: Speaker/Headphone (Realtek(R) Audio) Sample rate: 44100 <-- can be changed
Windows
Control Panel > Hardware and Sound Output: Speaker/Headphone Raltek(R) Audio Sample rate: 48000 Hz <-- unable to change
Thanks,