Michael's example rocks - try it-
I've got a function that will play the wav's, not sure if it will mp3's but I'd be curious - won't have time until tomorrow to look at it...
MP3 (or wav) in resource file?
Collapse
X
-
Leave a comment:
-
-
Thanks. I didn't know about RCDATA. I'll take a look at it. That might work out for me.
Barry
Leave a comment:
-
-
You could use a resource file with RCDATA statements loading the MP3 files into your executable.
Extract them temporarily to disk when it's time to play and 'Kill' them when done.
There are plenty of examples using RCDATA in the forums.
This one by William Burns is pretty straight-forward.. http://www.powerbasic.com/support/pb...ad.php?t=23527
Leave a comment:
-
-
Originally posted by Mel Bishop View PostCheck my (same) question at: http://www.powerbasic.com/support/pb...ad.php?t=21403
Actually, I just converted one of the 5 songs I plan to put in it to wav and it went from 2.1 meg to 23 meg. That's still managable but it makes MP3 look a lot better.
Barry
Leave a comment:
-
-
-
MP3 (or wav) in resource file?
I'm making up a little personalized Christmas card program for the retirement home where I live and I want it to play a little music. Getting it on their computer won't be too difficult if it's a single file but if I have a few files it'll take some serious schmoozing. The reasons for that are far too silly to explain.
Anyway, with that in mind is there some way I can include a few MP3 files in the resource and compile them into the executable? If so, how?
I can use wav files for this if I have to, or any other format that I can convert to, but they are MP3 and I have a routine that will play MP3 so I'd like to go ahead and use that if possible. If not, that's okay too.
Any tips will be appreciated.
Thanks,
BarryTags: None
-
Leave a comment: