Announcement

Collapse
No announcement yet.

MP3 (or wav) in resource file?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Scott Turchin
    replied
    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...

    Leave a comment:


  • Barry Marks
    replied
    Thanks. That looks useful.

    Barry

    Leave a comment:


  • Michael Mattias
    replied
    You can put ANYTHING in a program resource...

    User-Defined Resource Demo January 26 2003

    MCM

    Leave a comment:


  • Barry Marks
    replied
    Thanks. I didn't know about RCDATA. I'll take a look at it. That might work out for me.

    Barry

    Leave a comment:


  • Dave Biggs
    replied
    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:


  • Barry Marks
    replied
    Originally posted by Mel Bishop View Post
    Thanks. That's all about wav files, which I can use if I have to, but MP3 would be smaller. I'm not sure how much that matters but if it's not a lot harder it might be better. Do you or anyone know of something comparable for MP3?

    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:


  • Mel Bishop
    replied
    Check my (same) question at: http://www.powerbasic.com/support/pb...ad.php?t=21403

    Leave a comment:


  • Barry Marks
    started a topic MP3 (or wav) in resource file?

    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,
    Barry
Working...
X