Created
May 27, 2023 21:01
-
-
Save Kerntrick/2fa0e359304c8bbb1ee6e092b90b9c00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'------------------------------------------------------------------------------------------------------------------ | |
'Here is a modified version I was able to make working | |
'------------------------------------------------------------------------------------------------------------------ | |
SuperStrict | |
'@bmk addarg "-nodef" | |
Framework brl.basic | |
Import brl.d3d9max2d | |
Import maxgui.drivers ' <--- This is causing the dll to fail to load | |
Import "D:\Dev\Lang\BmaxNG\MinGW32x64\x86_64-w64-mingw32\lib\libwinpthread.a" | |
Extern | |
Function nanosleep%( req:Byte Ptr, timespec:Byte Ptr) | |
EndExtern | |
Global SomethingToReturn%=1 | |
Function VSTPluginMain:Byte Ptr(audioMaster:Byte Ptr) Export | |
Initbrl() | |
Local p:Byte Ptr = nanosleep(Varptr SomethingToReturn, Varptr SomethingToReturn) | |
Return Varptr SomethingToReturn | |
EndFunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment