CatchSound example for OGG or WAV?

Just starting out? Need help? Post your questions and find answers here.
Cor
Enthusiast
Enthusiast
Posts: 124
Joined: Fri Apr 25, 2003 7:52 pm
Location: Netherlands
Contact:

CatchSound example for OGG or WAV?

Post by Cor »

Has someone a catchsound example for OGG or WAV.

I'am using the soundplugin example which comes with PB.

How large can the OGG file be when using catchsound?
Cor de Visser

Registered PureBasic user

Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
Cor
Enthusiast
Enthusiast
Posts: 124
Joined: Fri Apr 25, 2003 7:52 pm
Location: Netherlands
Contact:

Post by Cor »

I found it:

UseOGGSoundDecoder()

L1=?IB2-?IB1
CatchSound(0,?IB1,L1)

PlaySound(0,1)


end

IB1:
Includebinary "test.ogg"
IB2:

OGG sound file create with mp3 to ogg converter
http://www.ogg-converter.com
Cor de Visser

Registered PureBasic user

Author of ChordPlanet
Made with PureBasic
http://www.chordplanet.com
Post Reply