Include mp3 file in exe

Just starting out? Need help? Post your questions and find answers here.
Cor
Enthusiast
Enthusiast
Posts: 124
Joined: Fri Apr 25, 2003 7:52 pm
Location: Netherlands
Contact:

Post by Cor »

@Ricardo,

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
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

@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=
ARGENTINA WORLD CHAMPION
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

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 :)
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Fred wrote:About mp3 I will try to finish the lib and release it as a free plugin. Users will do what they want with it :)
Are there any news?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

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.
Check out OOP support for PB here!
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Sorry, i am not in C now :?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
thamarok
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 06, 2006 1:37 pm

Post by thamarok »

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.
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.
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
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

thamarok wrote:
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.
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.
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)
Intrigued - Registered PureBasic, lifetime updates user
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
thamarok
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 06, 2006 1:37 pm

Post by thamarok »

Thank you for the links KarLKoX, but I talked about PureBasic sourcecode. Maybe someday? :)
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

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 ;)
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post by Intrigued »

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 ;)
Thanks! Hope the other projects go well in the interm.
Intrigued - Registered PureBasic, lifetime updates user
Post Reply