Skip to content

Commit

Permalink
Merge branch 'main' into xcode15.3-bump
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne authored May 23, 2024
2 parents 80007fb + 26e6bb8 commit c102d7c
Show file tree
Hide file tree
Showing 14 changed files with 269 additions and 220 deletions.
2 changes: 1 addition & 1 deletion src/AudioUnit/AUGraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ public AUGraphError SetNodeInputCallback (int destNode, uint destInputNumber, Re
cb.Proc = &RenderCallbackImpl;
}
#else
cb.Proc = CreateRenderCallback;
cb.Proc = Marshal.GetFunctionPointerForDelegate (CreateRenderCallback);
#endif
cb.ProcRefCon = GCHandle.ToIntPtr (gcHandle);
return AUGraphSetNodeInputCallback (Handle, destNode, destInputNumber, ref cb);
Expand Down
4 changes: 2 additions & 2 deletions src/AudioUnit/AUScheduledAudioFileRegion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ internal struct ScheduledAudioFileRegion {
#if NET
public unsafe delegate* unmanaged<IntPtr, IntPtr, AudioUnitStatus, void> CompletionHandler;
#else
public ScheduledAudioFileRegionCompletionHandler CompletionHandler;
public IntPtr CompletionHandler;
#endif
public /* void * */ IntPtr CompletionHandlerUserData;
public IntPtr AudioFile;
Expand Down Expand Up @@ -113,7 +113,7 @@ internal ScheduledAudioFileRegion GetAudioFileRegion ()
#if NET
ret.CompletionHandler = &ScheduledAudioFileRegionCallback;
#else
ret.CompletionHandler = static_ScheduledAudioFileRegionCompletionHandler;
ret.CompletionHandler = Marshal.GetFunctionPointerForDelegate (static_ScheduledAudioFileRegionCompletionHandler);
#endif
}
}
Expand Down
Loading

0 comments on commit c102d7c

Please sign in to comment.