Skip to content

Commit

Permalink
Fixed il2cpp (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
Macoron committed Jun 25, 2023
1 parent bd58b68 commit 2f9028b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packages/com.whisper.unity/Runtime/WhisperWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private void NewSegmentCallback(int nNew, WhisperParams param)
}

[MonoPInvokeCallback(typeof(whisper_progress_callback))]
private void ProgressCallbackStatic(IntPtr ctx, IntPtr state, int progress, IntPtr userDataPtr)
private static void ProgressCallbackStatic(IntPtr ctx, IntPtr state, int progress, IntPtr userDataPtr)
{
// relay this static function to wrapper instance
var userData = (WhisperUserData) GCHandle.FromIntPtr(userDataPtr).Target;
Expand Down

0 comments on commit 2f9028b

Please sign in to comment.