March 28, 201114 yr 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
September 20, 201212 yr 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
October 10, 201212 yr @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
October 10, 201212 yr 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.
May 9, 201510 yr 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!
May 9, 201510 yr 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, 201510 yr by kao
May 9, 201510 yr 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.
May 9, 201510 yr 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/
May 9, 201510 yr 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.
May 10, 201510 yr 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
May 10, 201510 yr 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.
May 11, 201510 yr 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
May 19, 201510 yr 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
May 20, 201510 yr 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.
February 10, 20214 yr 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, 20214 yr by Roentgen
Create an account or sign in to comment