Include mp3 file in exe
@Ricardo,
Seems to me a good idea to start with if it's possible
What do you think Fred?
Seems to me a good idea to start with if it's possible
What do you think Fred?
Cor de Visser
Registered PureBasic user
Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
Registered PureBasic user
Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
@Cor
Ifyou file are no too big and you just want to play it, having no much control, you can play it from memory
viewtopic.php?t=6587&highlight=
Ifyou file are no too big and you just want to play it, having no much control, you can play it from memory
viewtopic.php?t=6587&highlight=
ARGENTINA WORLD CHAMPION
Remember than an mp3 takes exactly the same size than a 16bit stereo 44000hz WAV when it's decompressed in memory. That's why some wondered what it took so long to decompress and took so much memory, when dealing with OGG. A 4 mins files is about 50 mb in memory, sometimes more when the bitrate is high. About mp3 I will try to finish the lib and release it as a free plugin. Users will do what they want with it 

- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
Psychophanta, are you in C ?
As if yes ... Im still looking for a participant for biuilding a wrapper to libavcodec (ffmpeg) ... with that one youre able to generate a Userlib decoding almost every type of audio and video you want - without the usage of system codecs as libavcodec does have them all on board.
As if yes ... Im still looking for a participant for biuilding a wrapper to libavcodec (ffmpeg) ... with that one youre able to generate a Userlib decoding almost every type of audio and video you want - without the usage of system codecs as libavcodec does have them all on board.
Check out OOP support for PB here!
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
The best format for music that you can embed into an exe is a music module. Look for Fast Tracker 2, it is a tracker program (module music making program) which creates .xm files.tkruk wrote:Why doesn't PureBasic support MP3s internally. With CatchSound
or something??? Seems like Blitz and Jamagic do it already...
Also what is the best format for music playback that IS included in
the EXE? (for a demo and such)
Tom.
There are XM file specifications in the internet, but I have not found any lib yet which should play them. But, I have seen many programs that embed an XM file.
I'd be interested as well in a XM lib. (thumbs up)thamarok wrote:The best format for music that you can embed into an exe is a music module. Look for Fast Tracker 2, it is a tracker program (module music making program) which creates .xm files.tkruk wrote:Why doesn't PureBasic support MP3s internally. With CatchSound
or something??? Seems like Blitz and Jamagic do it already...
Also what is the best format for music playback that IS included in
the EXE? (for a demo and such)
Tom.
There are XM file specifications in the internet, but I have not found any lib yet which should play them. But, I have seen many programs that embed an XM file.
Intrigued - Registered PureBasic, lifetime updates user
I ve a working mod,xm,s3m module player written in PB in development but it needs a lot of check to see if all effects are well reproduced and there is no sound driver output (only a raw output file for rendering).
I must finish two softwares (wich one is really hard for me) and then, i ll release something really usuable, there will be a annoucement
I must finish two softwares (wich one is really hard for me) and then, i ll release something really usuable, there will be a annoucement

Thanks! Hope the other projects go well in the interm.KarLKoX wrote:I ve a working mod,xm,s3m module player written in PB in development but it needs a lot of check to see if all effects are well reproduced and there is no sound driver output (only a raw output file for rendering).
I must finish two softwares (wich one is really hard for me) and then, i ll release something really usuable, there will be a annoucement
Intrigued - Registered PureBasic, lifetime updates user