If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Ogg Vorbis encoding

Dear experts,

I have an MFC application. I have audio data stored in bytes within a custom file. My question is, how can I encode an array of those bytes into an ogg vorbis format? Is there any example that would help me?

Re: Ogg Vorbis encoding

Did you link with both libOgg & libVorbis?

Just to be sure I post this as well:
Project properties / Linker / Input / Additional Dependencies is where you add the name of the libs to be linked.
Project properties / Linker / General / Additional Library Directories is where you add the search path for the libraries.

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan

Re: Ogg Vorbis encoding

Originally Posted by Igor Vartanov

So, this only means you have a lot of things to learn.

Do I really have to? For me, it is only one episode, I may never face such a task again. That's why I tried to find just a working example that I could use immediately. I am afraid it may be too time consuming to study a new science.

Re: Ogg Vorbis encoding

Do I really have to?

How could I know?

For me, it is only one episode, I may never face such a task again.

...or may have a lot. Getting along with directshow programming opens such a lot of opportunities (any playback/encoding/transcoding media task commonly used here and there in contemporary apps), of course if you stay stick with Windows. Anyway, right now it's all up to you.

I am confused. Could you please help?

Unresolved externals typically means you include not all the libraries needed by the build. Already defined may mean runtime model mismatch.

Re: Ogg Vorbis encoding

Hello.
To get a ogg vorbis example was difficult but i finely go an example working.
the example is test.c. The exact location is libvorbis-1.3.3/ test/ test.c .
The other example was so buggy i gave up on it.
I did it on linux system at the consul. I compiled with this line:

and remove the line 66 which is " remove (filename);"
This program will give a good working example on the encoder.

I have another example I made my self and will post it if asked.
It generates two differnt pcm sine waves in memory then encodes it
and save it to the hard drive. The ogg file will play a 200hz wave out of left head phone
and 1000hz out the other.
And now i am working on third example to take a saved wav file on hard drive and on convert
it to ogg file and save it on the hard drive.

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.