Пример #1
0
 /// <summary>
 /// Process audio samples in replacing mode @see AudioEffect::processReplacing
 /// </summary>
 public void ProcessReplacing( IntPtr inputs, IntPtr outputs, VstInt32 sampleFrames ) {
     if ( processReplacingProc == null && aeffect.processReplacing != IntPtr.Zero ) {
         processReplacingProc = (AEffectProcessProc)Marshal.GetDelegateForFunctionPointer( aeffect.processReplacing, typeof( AEffectProcessProc ) );
     }
     try {
         if ( processReplacingProc != null ) {
             processReplacingProc( ref aeffect, inputs, outputs, sampleFrames );
         }
     } catch ( Exception ex ) {
         Console.Error.WriteLine( "AEffect#ProcessReplacing; ex=" + ex );
     }
 }
Пример #2
0
 /// <summary>
 /// Process audio samples in replacing mode @see AudioEffect::processReplacing
 /// </summary>
 public void ProcessReplacing( IntPtr inputs, IntPtr outputs, VstInt32 sampleFrames ) {
     if ( processReplacingProc == null && aeffect.processReplacing != IntPtr.Zero ) {
         processReplacingProc = (AEffectProcessProc)Marshal.GetDelegateForFunctionPointer( aeffect.processReplacing, typeof( AEffectProcessProc ) );
     }
     try {
         if ( processReplacingProc != null ) {
             processReplacingProc( ref aeffect, inputs, outputs, sampleFrames );
         }
     } catch ( Exception ex ) {
         Console.Error.WriteLine( "AEffect#ProcessReplacing; ex=" + ex );
     }
 }