is there a way to embed mod files within PB maybe using somethign like:
Code: Select all
Music: IncludeBinary "whatever.mod"
LoadModule(0, ?Music)
--Kale
New to PureBasic and falling in Love!

Code: Select all
Music: IncludeBinary "whatever.mod"
LoadModule(0, ?Music)


Code: Select all
OpenLibrary(0, "bassmod.dll")
If OpenWindow(0, 200, 200, 200, 200, #PB_Window_SystemMenu | #PB_Window_MinimizeGadget , "PureBasic Window")
CallFunction(0, "BASSMOD_Init" ,-1,44010,16)
CallFunction(0, "BASSMOD_MusicLoad",1,?music,0,0,2)
CallFunction(0, "BASSMOD_SetVolume",50)
CallFunction(0, "BASSMOD_MusicPlay")
Repeat
EventID.l = WindowEvent()
Until EventID = #PB_Event_CloseWindow
EndIf
Result = CallFunction(0, "BASSMOD_MusicStop")
CloseLibrary(0)
End
music:
IncludeBinary"music.mod"