Is ogg support for linux broken in 3.92?

Linux specific forum
kake26
Enthusiast
Enthusiast
Posts: 137
Joined: Sun Jan 25, 2004 7:21 pm
Contact:

Is ogg support for linux broken in 3.92?

Post 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?
olejr
Enthusiast
Enthusiast
Posts: 152
Joined: Sun Jul 11, 2004 7:48 pm
Location: Lillehammer, No(r)way
Contact:

Post 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..
Fred
Administrator
Administrator
Posts: 16616
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Yes, OGG support on linux isn't done. I will add it.
Fred - AlphaSND
Fred
Administrator
Administrator
Posts: 16616
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Ok, it's done ;). Tests are welcome: www.purebasic.com/beta/linux - copy all the 3 files in your purelibraries directory.
Fred - AlphaSND
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Damn you are fast Fred :)
Mindblowing :lol:
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
kake26
Enthusiast
Enthusiast
Posts: 137
Joined: Sun Jan 25, 2004 7:21 pm
Contact:

Post 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.
kake26
Enthusiast
Enthusiast
Posts: 137
Joined: Sun Jan 25, 2004 7:21 pm
Contact:

Post by kake26 »

It works! Works great. I can now build the app finally. :twisted:
Beach
Enthusiast
Enthusiast
Posts: 677
Joined: Mon Feb 02, 2004 3:16 am
Location: Beyond the sun...

Post by Beach »

Works fine here too! Thanks Fred!
-Beach
Fred
Administrator
Administrator
Posts: 16616
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Good to hear, thank you for the feedback ;)
Fred - AlphaSND
Post Reply