Exemple #1
0
 public bool CompileMML(string mmlString, ref int errorCode, ref UInt32 errorLine, bool isWave, delegatePlayFinished dlgPlayFinished, object parent)
 {
     if (hHandle == IntPtr.Zero)
     {
         return(true);
     }
     lock (this)
     {
         CallbackParams info = new CallbackParams(this, parent, dlgPlayFinished);
         int            hash = this.GetHashCode();
         callbacks[hash] = info;
         return(DllCompileMML(hHandle, mmlString, ref errorCode, ref errorLine, (byte)(isWave ? 1 : 0), cbInstancePlayFinished, hash));
     }
 }
Exemple #2
0
 public CallbackParams(WaveGenIF _this, object parent, delegatePlayFinished dlg)
 {
     m_this   = _this;
     m_parent = parent;
     m_dlg    = dlg;
 }