<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=4>My apologies -- I thought this post was going
directly to the author of a thread from last year. I can't believe how
hard it is for me to simply decode an ogg file in MFC.</FONT></DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=srussell@innernet.net href="mailto:srussell@innernet.net">Steve
Russell</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=vorbis@xiph.org
href="mailto:vorbis@xiph.org">vorbis@xiph.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, June 17, 2005 11:53
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [vorbis] ov_open fails on
Version 1.0.1</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=4>Eddie,</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>I have been reviewing vorbis list postings,
because I have been spinning my wheels for a week, trying to make a simple
insertion of ogg vorbis decoding (vorbisfile) in the audio class of my MFC/C++
program. I just read your thread from April 2004.</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>Question: Do you have anything you could
send me, since I assume you succeeded in getting results? And/or could
you take a look at what I have below and possibly point out my problem?
Needless to say, I would greatly appreciate it!</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>Steve Russell</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV>
<DIV><FONT face=Arial size=4> // AudioFile.cpp</FONT></DIV>
<DIV><FONT face=Arial size=4> #include "vorbis/codec.h"<BR> #include
"vorbis/vorbisfile.h"</FONT></DIV>
<DIV><FONT face=Arial size=4> . . .</FONT></DIV>
<DIV><FONT face=Arial size=4> OggVorbis_File vf;<BR> FILE*
pFile;<BR> pFile = fopen("verdes_2.ogg", "rb");<BR> int err
= err = ov_open(pFile, &vf, NULL, 0);</FONT></DIV>
<DIV><FONT face=Arial size=4> . . .</FONT></DIV>
<DIV><FONT face=Arial size=4> ov_clear(&vf);</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>In my app's directory, I have</FONT></DIV>
<DIV><FONT face=Arial size=4>ogg.dll</FONT></DIV>
<DIV><FONT face=Arial size=4>vorbis.dll</FONT></DIV>
<DIV><FONT face=Arial size=4>vorbisfile.dll</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>and have added to my project these
files:</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>ogg\ogg.h</FONT></DIV>
<DIV><FONT face=Arial size=4>ogg\os_types.h</FONT></DIV>
<DIV><FONT face=Arial size=4>vorbis\codec.h</FONT></DIV>
<DIV><FONT face=Arial size=4>vorbis\vorbisfile.h</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>I am ignoring this library:</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>MSVCRT.lib</FONT></DIV>
<DIV><FONT face=Arial size=4>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>"Use run-time library" is set to Multi-threaded
DLL.</FONT></DIV>
<DIV> </DIV>
<DIV>"Object/library modules": vorbis/vorbisfile.lib</DIV></FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>ov_open gives me a
mystserious exception.</FONT></DIV></DIV></BLOCKQUOTE></BODY></HTML>