IncludeBinary Stuff

Just starting out? Need help? Post your questions and find answers here.
Dobermann
New User
New User
Posts: 4
Joined: Sat Apr 26, 2003 7:53 am

IncludeBinary Stuff

Post 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 :?:
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: IncludeBinary Stuff

Post 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:
Dobermann
New User
New User
Posts: 4
Joined: Sat Apr 26, 2003 7:53 am

Post 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 :(
Last edited by Dobermann on Sat Apr 26, 2003 9:30 pm, edited 1 time in total.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post 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...
Dobermann
New User
New User
Posts: 4
Joined: Sat Apr 26, 2003 7:53 am

Post by Dobermann »

As for me - it is not the best way... but I have to do such :( Thanks
WolfgangS
Enthusiast
Enthusiast
Posts: 174
Joined: Fri Apr 25, 2003 3:30 pm

This way ...

Post 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
Dobermann
New User
New User
Posts: 4
Joined: Sat Apr 26, 2003 7:53 am

Post by Dobermann »

2 WolfgangS: By the way you write rathere interesting demo (oldskool) ... great project... I like it :!: :wink:
Post Reply