I'm running UBUNTU 13.10 x86 and I am able to play .ogg files with this code.
Code: Select all
UseOGGSoundDecoder()
InitSprite() : OpenWindow(0,0,0,800,600,"SOFTWARE",#PB_Window_ScreenCentered|#PB_Window_MinimizeGadget)
OpenWindowedScreen(WindowID(0),0,0,800,600,#True,0,0)
InitSound() : CatchSound(1,?WAVE,1894457) : PlaySound(1)
Repeat : Delay(2) : Until WaitWindowEvent()= #PB_Event_CloseWindow
End
WAVE: : IncludeBinary "song.ogg"UseOGGSoundDecoder()
this next one,
InitSound() : CatchSound(1,?WAVE,1894457) : PlaySound(1)
and the final data statement,
WAVE: : IncludeBinary "song.ogg"
The rest of the code is creating the windowed environment so one can exit the running program by clicking the window close icon.
You'll need to change the file length parameter into the CatchSound command to match your song's, or it will crash.
