kao Posted March 28, 2011 Share Posted March 28, 2011 Read the entire thread, especially the post http://forum.tuts4you.com/index.php?showtopic=22731&view=findpost&p=108521Ghandi was using DLL2Lib from www.binary-soft.com/dll2lib/dll2lib.htm Link to comment
Freefall63 Posted September 20, 2012 Share Posted September 20, 2012 Hey guys, I know this thread is really old. But I really need to ask: how about vb or vb .NET? I definetly could need a static bass playback Or is any sound engine out there which is full managed code and is able to play chips and ogg´s? My dream is to play sounds (ogg,xm,mod,it,s3m) in vb .net without any local extraction ... And by the way, I would also pray for a v2m playback engine for vb .net !!! Greetz Link to comment
zugzwang Posted October 10, 2012 Share Posted October 10, 2012 @ghandi;thank you for great work..staticlib working perfectly.spectrum original (with dll) & spectrum staticlib (without dll) samples attached;http://www.dosya.tc/server22/wRdJXP/Ghandi.rar.html Link to comment
mudlord Posted October 10, 2012 Share Posted October 10, 2012 Hey guys, I know this thread is really old. But I really need to ask: how about vb or vb .NET? I definetly could need a static bass playback Or is any sound engine out there which is full managed code and is able to play chips and ogg´s? My dream is to play sounds (ogg,xm,mod,it,s3m) in vb .net without any local extraction ... And by the way, I would also pray for a v2m playback engine for vb .net !!! Greetz V2M would require a lot of work for managed ports. XM/MOD/IT/S3M - completely feasible. Link to comment
Sn!per X Posted May 9, 2015 Share Posted May 9, 2015 Salut,Sorry for pumping an old thread..But is any body succeeded converting the LIB to be used with delphi?or is there another way to link the dll without extracting it to a temp dir?I did alot of research but no luck! Link to comment
kao Posted May 9, 2015 Share Posted May 9, 2015 (edited) In theory, the required steps would be: take static lib from this topic; extract coff-format obj files using objconv.exe by Agner Fog; convert coff obj files to omf obj files using the same objconv.exe; make those OMF files usable by Delphi using omf2d.exe by EliCZ; make a Delphi unit that uses those obj file and defines Bassmod constants and function prototypes; profit! In reality, it's usually simpler to drop DLL in temp or use some sort of RunPE to load DLL from memory.. EDIT: typo spotted by Sn!per X. Sorry, it's a late evening here, I'm tired.. Edited May 9, 2015 by kao 1 Link to comment
Sn!per X Posted May 9, 2015 Share Posted May 9, 2015 Well, thanks Kao for the quick response.i tried to download the tools you mentioned abovebut i stucked at step 4:omd2d.exe by EliCZ a google search went empty!!so any download link will be appreciated. Link to comment
Kurapica Posted May 9, 2015 Share Posted May 9, 2015 Hey guys, I know this thread is really old. But I really need to ask: how about vb or vb .NET? I definetly could need a static bass playback Or is any sound engine out there which is full managed code and is able to play chips and ogg´s? My dream is to play sounds (ogg,xm,mod,it,s3m) in vb .net without any local extraction ... And by the way, I would also pray for a v2m playback engine for vb .net !!! Greetz https://forum.tuts4you.com/topic/27912-play-xm-chips-without-additional-dlls-from-c/ Link to comment
Sn!per X Posted May 9, 2015 Share Posted May 9, 2015 thanks guys for the help well Kao mistaped the tool name , infact its omf2d.exe; but big thanks to you for any body looking for it: http://www.delphi4arab.net/forum/showthread.php?t=4456 Kurapicathank you also, but i wanted bassmod cuz of multi modules support not just for XM. Link to comment
Sn!per X Posted May 10, 2015 Share Posted May 10, 2015 after converting i stucked at:[Error] Unit1.pas(27): Bad object file format: 'C:\1000\4- Delphi Bassmod obj Test\bassmod_exp_.obj'[Error] Unit1.pas(29): Unsatisfied forward or external declaration.. what i am doing wrong? Bassmod_Delphi.rar Link to comment
kao Posted May 10, 2015 Share Posted May 10, 2015 As you can see for yourself - getting obj files work in Delphi is not an easy process. You didn't do anything wrong, it just involves a lot of hacking around lots of issues. As for #1 - IIRC you don't need bassmod_exp_.obj file at all, all the required functionality was in bassmod.obj. So, just get rid of that bassmod_exp_.obj.As for #2 - Most likely obj file references some function that Delphi doesn't know about. Something like _initterm comes to mind, but I can't really tell w/o installing Delphi and trying it out. 1 Link to comment
Sn!per X Posted May 11, 2015 Share Posted May 11, 2015 What's about prototypes? how to declare'em? for example: when the dll linked: function BASSMOD_Init(device: Integer; freq, flags: DWORD): BOOL; stdcall; external 'bassmod.dll'; but when bassmod_.obj linked: function BASSMOD_Init(device: Integer; freq, flags: DWORD): BOOL; stdcall; external'; declaring the function in this way gives me: [Error] Unit1.pas(149): Bad object file format: 'C:\1000\4- Delphi Bassmod obj Test\bassmod_.obj' i am getting Link to comment
kao Posted May 19, 2015 Share Posted May 19, 2015 Sn!per X was still having problems, so I took some time and made both the conversion and tutorial about it: http://lifeinhex.com/static-linking-of-bassmod-in-delphi/ Attached are only Delphi units&obj files - if you want to see intermediate steps, please read the entire tutorial and download the full package from there.Delphi_units_bass_bassmod.rar 2 Link to comment
Sn!per X Posted May 20, 2015 Share Posted May 20, 2015 excellent job kao, for a while i thought its impossible to convert that thing to a valid delphi obj file so many thanks for your help. Link to comment
Roentgen Posted February 10, 2021 Share Posted February 10, 2021 (edited) Can someone please unpack the latest bass.dll for me? I would like to convert it to use in c++. I've found an OEP/dumped/reconstructed but maybe I do something wrong because the dll is not working and Dll2Lib crashes I also tried to use old v2.0 and bassmod.lib provided in this topic, but the linker says there are mismatches in lib's export... Edit: still looking for a smaller solution, but for now I used code of MemoryModule from github to load bass.dll directly from resources Edited February 10, 2021 by Roentgen Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now