Hello,
An external that I'm working on needs to know sample rate. Member s_sr of struct t_signal is normally used for the purpose, but this value isn't representative in a subpatch with overlap because it gives the total rate for the overlapping signal vectors. My external is specifically meant to work with use-case-dependent block size, overlap and downsampling, that's why I care.
I know there's a feature request from 2005 about adding an 'overlap' member in the t_signal struct (https://sourceforge.net/p/pure-data/feature-requests/16/). That never happened - you can't add a member to a struct in a stable API, can you?
Is there a workaround? The [samplerate~] object does it correctly, but uses functions / data types which aren't part of the API, or which are even local to the file (d_ugen.c). Could anyone think of another approach?
Katja