Page 1 of 1

IncludeBinary Stuff

Posted: Sat Apr 26, 2003 7:59 am
by Dobermann
Is it possible to load sprites and MIDI music into exe`s with the help of includebinary , and then use them directly from exe, without extracting to HDD... :?: Any Ideas :?:

Re: IncludeBinary Stuff

Posted: Sat Apr 26, 2003 8:34 am
by PB
You can include sprites with IncludeBinary and then access them directly with the CatchSprite command:

http://www.purebasic.com/documentation/ ... prite.html

MIDIs are not supported like this, and I don't know of any plans to do so.
It's all up to Fred and how often you bug him about it. :wink:

Posted: Sat Apr 26, 2003 8:53 am
by Dobermann
Thanks... I`ve searched posts relaying to this topic but haven`t found useful info how to play midi ignoring to extract it to HD... :? PITY :(

Posted: Sat Apr 26, 2003 8:58 am
by PB
Any reason why you can't extract it to disk first, and delete it afterwards?
I know it's not ideal, but it's definitely a workable solution...

Posted: Sat Apr 26, 2003 12:05 pm
by Dobermann
As for me - it is not the best way... but I have to do such :( Thanks

This way ...

Posted: Sat Apr 26, 2003 4:48 pm
by WolfgangS
I figured out to play a midi file you have to do it with the PlayMovie() command. Unfortunately there are no CatchVideo() command. (I gave you the wrong info once at IRC - sorry)

It seems there is no possibility yet to load it from memory .... :cry: or ?

MFG
WolfgangS

Posted: Sun Apr 27, 2003 8:59 am
by Dobermann
2 WolfgangS: By the way you write rathere interesting demo (oldskool) ... great project... I like it :!: :wink: