How to decode ogg audio file to raw audio data?

2.1k Views Asked by At

I have .ogg file and I want to decode it to raw audio data. I read documentation to libvorbis, but it's very brief and not clear. I don't understand it! What Should i use libvorbis or libogg? Or something else?

1

There are 1 best solutions below

2
On

ogg is file format so using libogg you can demux file and then you will get vorbis audio you need to further decode that using libvorbis. and you will get raw audio.

Samples application for using those library are available on Internet.