/// <summary> /// Standard constructor for creating a parameter set. /// Usually executed via the GetParameters() method in the main csound object: Csound6Net /// and thus not usually used directly in a host program. /// </summary> /// <param name="csound"></param> public Csound6Parameters(Csound6Net csound) { m_csound = csound; m_oparms = new CSOUND_PARAMS(); GetParams(m_oparms); }
/// <summary> /// Transfers the contents of the provided raw CSOUND_PARAMS object into csound's /// internal data structues (chiefly its OPARMS structure). /// This method is used internally to manage this class and is not expected to be used directly by a host program. /// Most values are used and reflected in CSOUND_PARAMS. /// Internally to csound, as of release 6.0.0, Heartbeat and IsComputingOpcodeWeights are ignored /// and IsUsingCsdLineCounts can only be set and never reset once set. /// </summary> /// <param name="parms">a </param> public void SetParams(CSOUND_PARAMS parms) { NativeMethods.csoundSetParams(m_csound.Engine, parms); }
internal static extern void csoundSetParams(IntPtr csound, [In, MarshalAs(UnmanagedType.LPStruct)] CSOUND_PARAMS parms);
/// <summary> /// Fills in a provided raw CSOUND_PARAMS object with csounds current parameter settings. /// This method is used internally to manage this class and is not expected to be used directly by a host program. /// </summary> /// <param name="oparms">a CSOUND_PARAMS structure to be filled in by csound</param> /// <returns>The same parameter structure that was provided but filled in with csounds current internal contents</returns> public CSOUND_PARAMS GetParams(CSOUND_PARAMS oparms) { NativeMethods.csoundGetParams(m_csound.Engine, oparms); return(oparms); }