Skip to content

Instantly share code, notes, and snippets.

@Kerntrick
Created May 27, 2023 21:01
Show Gist options
  • Save Kerntrick/2fa0e359304c8bbb1ee6e092b90b9c00 to your computer and use it in GitHub Desktop.
Save Kerntrick/2fa0e359304c8bbb1ee6e092b90b9c00 to your computer and use it in GitHub Desktop.
'------------------------------------------------------------------------------------------------------------------
'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