UseMP3SoundDecoder doesn't work

Everything else that doesn't fall into one of the other PB categories.
gabriel
Enthusiast
Enthusiast
Posts: 137
Joined: Sat Aug 01, 2009 4:49 pm
Location: Beirut, Lebanon

UseMP3SoundDecoder doesn't work

Post 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
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: UseMP3SoundDecoder doesn't work

Post by Trond »

Uselib must be compiled to a particular version of PureBasic, so it is probably too old.
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Re: UseMP3SoundDecoder doesn't work

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

http://karlkox.blogspot.com/
SeregaZ
Enthusiast
Enthusiast
Posts: 629
Joined: Fri Feb 20, 2009 9:24 am
Location: Almaty (Kazakhstan. not Borat, but Triple G)
Contact:

Re: UseMP3SoundDecoder doesn't work

Post 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?
User avatar
kenmo
Addict
Addict
Posts: 2083
Joined: Tue Dec 23, 2003 3:54 am

Re: UseMP3SoundDecoder doesn't work

Post 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).
SeregaZ
Enthusiast
Enthusiast
Posts: 629
Joined: Fri Feb 20, 2009 9:24 am
Location: Almaty (Kazakhstan. not Borat, but Triple G)
Contact:

Re: UseMP3SoundDecoder doesn't work

Post by SeregaZ »

thanks. :D

in this case i'll made ogg. but mp3 more popular and for creating some players anyway need mp3 support.
Post Reply