Page 1 of 1

OGG won't play

Posted: Mon Jan 10, 2005 1:07 pm
by eevee
Apologies if this should be in 'Beginners' section but I feel it has nothing to do with coding.

The following works quite well.

InitSound()
UseOGGSoundDecoder()

ANS$ = "c:\atest\wav.wav" ;This line works
; ANS$ = "c:\atest\ogg.ogg" ;This line does not work
LoadSound(1, ANS$)
PlaySound(1,0)

MessageRequester("Sound", "Playing the sound."+Chr(10)+"Click to quit..", 0)
End

However if I release the OGG line and comment out the WAV line, nothing happens but no faults are shown.

Having no OGG playback, a couple of days ago I downloaded a Codec and installed it. I can now play OGG by file association in Windows Meda Player.

However if I set the file association to Irfanview, I just get a blank Irfanview screen but I do not get asked to 'fetch the plugin'.

This make me think that there is more to Codecs than just downloading and installing.

Could someone tell me what I need to do to active it for PureBasic?

The system is Win98 and I am currently using the demo version of PureBasic.

Posted: Tue Jan 11, 2005 5:33 pm
by grapy

Posted: Tue Jan 11, 2005 9:11 pm
by eevee
Many thanks for the link.

I suspect that that may well be the answer.

Although I need to experiment further, looks like an external library may have to be used.

Following a different thread, I downloaded something called ov:lib and the demo included with it does work well.

We'll see !