Hi,
I’m currently working on a custom opcode and I need to retireve the sample rate for the processing section of the opcode.
I’ve been trying to use
p->samplerate = csoundGetSr(csound);
To store the value of sr into my opcodes data structure and I’ve included the csdl.h, csound.h, and csoundCore.h headers and I keep getting an error saying the function call is an implicit function call. Am I calling the incorrect headers or is there a better way to retrieve the sr value?
By sr I mean in a csound file in the instruments section where you’d declare sr = 44100 for example.
Any help would be greatly appreciated!