pouët.net

Go to bottom

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)
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?
added on the 2012-02-05 14:58:17 by Moerder Moerder
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/
added on the 2012-02-05 15:13:06 by Romain337 Romain337
Romano58: Thats exactly what i was searching for! Thanks :D
np :)
added on the 2012-02-05 15:19:45 by Romain337 Romain337
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.
added on the 2012-02-05 15:23:04 by Moerder Moerder
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.
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.
added on the 2012-02-05 15:36:55 by Preacher Preacher
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.
added on the 2012-02-05 15:41:17 by Moerder Moerder
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.
added on the 2012-02-05 19:06:10 by rudi rudi
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. (:
added on the 2012-02-05 19:26:03 by nystep nystep
Doesn't exactly seem feasible to use vorbis for a 64k...
added on the 2012-02-05 22:40:55 by ___ ___
ah true, the guy suddenly changed his wish to make a demo for a 64k in the middle of the thread. :)
added on the 2012-02-05 23:55:40 by nystep nystep
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.
added on the 2012-02-06 09:23:46 by Bartoshe Bartoshe
http://sourceforge.net/projects/deaddeer/files/sources/sound.zip/download
added on the 2012-02-06 09:24:48 by Bartoshe Bartoshe
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.
added on the 2012-02-06 09:37:38 by mudlord mudlord
ps: LOADNGET is in bass23
added on the 2012-02-06 09:38:02 by mudlord mudlord
BlackSheep8Bit: haven't enough people told you to avoid FMOD already? Don't use it. :)
added on the 2012-02-06 11:14:26 by gloom gloom
Well, as far as 64k XM replay is concerned, MiniFMOD/uFMOD are the only options.
added on the 2012-02-06 11:51:03 by Gargaj Gargaj
(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? ;-)
added on the 2012-02-06 12:31:14 by xeron xeron
Is there no static BASS lib?
added on the 2012-02-06 12:41:38 by raer raer

login

Go to top