add AOT.MonoPInvokeCallback at MediaObject So that Fmod can work.

This commit is contained in:
alexiscatnip
2022-02-14 00:38:41 +08:00
parent 2a34f3f5b7
commit 59e8c4c4e5
+3 -1
View File
@@ -251,7 +251,9 @@ namespace Raindrop.Media
/// <param name="commanddata1"></param>
/// <param name="commanddata2"></param>
/// <returns></returns>
protected RESULT DispatchEndCallback(
/// We changed this to static, in hope that it will fix that nasty IL2cpp does not support marshalling runtime error
[AOT.MonoPInvokeCallback(typeof(CHANNELCONTROL_CALLBACK))]
protected static RESULT DispatchEndCallback(
IntPtr channelraw,
CHANNELCONTROL_TYPE controltype,
CHANNELCONTROL_CALLBACK_TYPE type,