OGG won't play

Everything else that doesn't fall into one of the other PB categories.
eevee
User
User
Posts: 69
Joined: Sat Jan 08, 2005 6:24 pm
Location: UK

OGG won't play

Post 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.
Regards,

Ernest
User avatar
grapy
User
User
Posts: 31
Joined: Sat Sep 06, 2003 9:32 am

Post by grapy »

eevee
User
User
Posts: 69
Joined: Sat Jan 08, 2005 6:24 pm
Location: UK

Post 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 !
Regards,

Ernest
Post Reply