BASSMOD dll inside the EXE
category: code [glöplog]
So, i was wondering if theres a way to put the DLL of bassmode inside the exe, i want the demo to be a single file, only the exe.
Also, miniFMOD seems to be a good idea, but i can't find any documentation/reference online :/
I Also heard about MXMPlay, everything i found was a DOS player and a file called "MXMPlay.h" inside some scene.org ftp page, but when i open it there was only the name of the functions, nothing inside :/
Currently using Visual c++ and opengl (no frameworks, i removed the glfw :D)
Also, miniFMOD seems to be a good idea, but i can't find any documentation/reference online :/
I Also heard about MXMPlay, everything i found was a DOS player and a file called "MXMPlay.h" inside some scene.org ftp page, but when i open it there was only the name of the functions, nothing inside :/
Currently using Visual c++ and opengl (no frameworks, i removed the glfw :D)
Quote:
So, i was wondering if theres a way to put the DLL of bassmode inside the exe, i want the demo to be a single file, only the exe.
Hint: Don't bother. Nobody cares about stuff like that (anymore).
Quote:
Also, miniFMOD seems to be a good idea, but i can't find any documentation/reference
Stay away from that. Didn't have that problems on multicore systems or something anyway?
Moerder: But i like single files :<
You can try µFmod maybe it will be suitable to your attempt. It is downloadable with many exemples. But it play only xm files.
http://ufmod.sourceforge.net/
http://ufmod.sourceforge.net/
Romano58: Thats exactly what i was searching for! Thanks :D
np :)
Quote:
Moerder: But i like single files :<
Oh, do whatever you like, but if I was you I wouldn't exchange BASS for anything else just to get a single filer. Concentrate on effects and getting that demo out the door instead.
If you really must, google for stuff like "embed dll exe" or so. There's tons of stuff coming up, ranging from (commercial) tools to tutorials. But it's really not worth anybody's time.
Moerder: All right then, if you say so, but the main problem is counting the bytes, i want to make it EXACTLY 64kb, with the dlls and everything else.
.libs are smaller than .dlls, Bassmod dll is like 34 kbs which gives me 30kbs remaining to make effects...
And i can't use kkrunchy in a dll, thats the problem.
.libs are smaller than .dlls, Bassmod dll is like 34 kbs which gives me 30kbs remaining to make effects...
And i can't use kkrunchy in a dll, thats the problem.
There are better and more modern ways to put music in 64kb intros than XM... check out Protrekkr, v2 or 4klang for instance. Of course, if you already have your song that you want to use, then ufmod is a pretty good choice.
Well, before you were talking about a demo. Had you written 64k before I hadn't bothered to write all what I did, simply because, yes, of course, it doesn't apply to 64ks.
BlackSheep8Bit: today, softsynths are more common in 64kb demos. but i guess you don't want to make your own. if you want to include dlls maybe you could make a self extracting installer. http://syedgakbar.wordpress.com/2007/11/07/embedding-dll-and-binary-files-in-the-executable-applications/ since that is from 2007 i am not sure if it will work on your compiler. my advice is not to include the dll into your exe if youre making a 64kb since dlls have other crap that takes size. minifmod would be a better choice if it works. and maybe ufmod (though ive never tried it). since the above solution is not very good practice for 64kb and kkrunchy or crinkler will probably fail to compress it even more i suggest you dont do it.
mm, maybe you could be interested about stb_vorbis. It decodes ogg files and it's public domain. You might need to make the thread for decoding and open the sound stuff by hand though. Good evening. (:
Doesn't exactly seem feasible to use vorbis for a 64k...
ah true, the guy suddenly changed his wish to make a demo for a 64k in the middle of the thread. :)
copy demo.exe + bass.dll
in the sources of Dead Deer you have sources to play ogg, xm, and mod files : http://deaddeer.free.fr/
you can not include a dll like that.
you can not include a dll like that.
http://sourceforge.net/projects/deaddeer/files/sources/sound.zip/download
Embed the DLL as a resource.
www.un4seen.com/download.php?bass23
Look for LOADNGET. Same principle for BASSMOD. However, I don't think file dropping is allowed. In that case, make your own DLL loader to load files from RAM.
www.un4seen.com/download.php?bass23
Look for LOADNGET. Same principle for BASSMOD. However, I don't think file dropping is allowed. In that case, make your own DLL loader to load files from RAM.
ps: LOADNGET is in bass23
BlackSheep8Bit: haven't enough people told you to avoid FMOD already? Don't use it. :)
Well, as far as 64k XM replay is concerned, MiniFMOD/uFMOD are the only options.
(and don't use mudlord's link, bass 2.3 has been superseded by bass 2.4 ages ago)
Since everyone is pointing out various music replayers whether or not they are what the guy is actually after, have you considered hivelytracker? ;-)
Is there no static BASS lib?