Page 1 of 1

Is ogg support for linux broken in 3.92?

Posted: Sat Jan 29, 2005 5:25 am
by kake26
Hi all,
Anyone know if ogg support is broken in 3.92 for linux. I try to compile the following:

Code: Select all

If InitSound() = 0
  MessageRequester("Error", "Can't open SDL or no sound card is available",  0)
  End
EndIf
UseOGGSoundDecoder()
SoundFileName$ = OpenFileRequester("Choose a sound file", "", "Wave or OGG files|*.wav;*.ogg",0)
If SoundFileName$
  If LoadSound(0, SoundFileName$)
    PlaySound(0)
    MessageRequester("Sound", "Playing the sound (loop)..."+Chr(10)+"Click to quit..", 0)
  Else
    MessageRequester("Error", "Can't load the sound.", 0)
  EndIf
EndIf
End   

Compiled like that I get the following error
bash-3.00$ pbcompiler oggy.pb

******************************************
PureBasic Linux x86 v3.92
******************************************

Loading external modules...
Starting compilation...
Error: Line 5 - UseOGGSoundDecoder() is not a function, an array, or a linked list
I guess it was removed right?

Posted: Sat Jan 29, 2005 10:42 am
by olejr
Question is was it ever there...

Have you used it before??

Because I'm looking at the purelibraries(v3.91), and can't find,
like on windows, the soundplugin & soundpluginOGG..

Posted: Sat Jan 29, 2005 1:32 pm
by Fred
Yes, OGG support on linux isn't done. I will add it.

Posted: Sat Jan 29, 2005 4:59 pm
by Fred
Ok, it's done ;). Tests are welcome: www.purebasic.com/beta/linux - copy all the 3 files in your purelibraries directory.

Posted: Sat Jan 29, 2005 5:03 pm
by GeoTrail
Damn you are fast Fred :)
Mindblowing :lol:

Posted: Sat Jan 29, 2005 6:55 pm
by kake26
Fred wrote:Ok, it's done ;). Tests are welcome: www.purebasic.com/beta/linux - copy all the 3 files in your purelibraries directory.
THANKS FRED!!!!! I will most certainly test these thourghly and let you know of any problems.

Posted: Sat Jan 29, 2005 7:03 pm
by kake26
It works! Works great. I can now build the app finally. :twisted:

Posted: Sat Jan 29, 2005 7:47 pm
by Beach
Works fine here too! Thanks Fred!

Posted: Sat Jan 29, 2005 8:21 pm
by Fred
Good to hear, thank you for the feedback ;)