Page 1 of 1
UseMP3SoundDecoder doesn't work
Posted: Thu Sep 10, 2009 5:59 pm
by gabriel
hello:
I've downloaded the plugin MP3SoundDecoder from userlibs in Purearea.net (made by KarlKoX 29.09.2006), and I tried to run the attached example with PB4.31, it didn't work.
is it too old? or I've done something wrong?
thank you
Gabriel
Re: UseMP3SoundDecoder doesn't work
Posted: Thu Sep 10, 2009 6:29 pm
by Trond
Uselib must be compiled to a particular version of PureBasic, so it is probably too old.
Re: UseMP3SoundDecoder doesn't work
Posted: Sat Sep 19, 2009 12:24 am
by KarLKoX
Hi !
In fact, the soundPlugin is too old.
I recompiled it with vstudio 2008 (true C stdcall with no tweaks), re-created the soundPluginMP3 userlib, tried the sample but it failed whis the first call (CatchSound).
There seems to be something changed within the soundPlugin SDK because none of the function are called even the most important (i added a messagebox to check it), UseMP3SoundDecoder.
Fred, are you there ?
Re: UseMP3SoundDecoder doesn't work
Posted: Tue Jun 07, 2011 6:11 pm
by SeregaZ
so how i can play mp3 sound in 4.30PB? i want to include mp3 to main exe file. in this case i need some CatchSound.
http://www.purearea.net/pb/download/use ... ecoder.rar didnt helped.
PlayMovie can play from DataSection? how i can made it?
Re: UseMP3SoundDecoder doesn't work
Posted: Tue Jun 07, 2011 6:46 pm
by kenmo
I've started using OGG files for music.
The quality/filesize is supposed to be better than MP3, but either way, PureBasic supports them (and streaming them!) directly.
You can convert your MP3 file to OGG easily (I use Audacity).
Re: UseMP3SoundDecoder doesn't work
Posted: Wed Jun 08, 2011 10:28 am
by SeregaZ
thanks.
in this case i'll made ogg. but mp3 more popular and for creating some players anyway need mp3 support.