[Vorbis] ogg vorbis decoding in MFC/C++ app
Steve Russell
srussell at innernet.net
Fri Jun 17 17:33:19 PDT 2005
I am trying to insert a bit of ogg vorbis decoding into my MFC/C++ program and send it to my waveOut functions.
// AudioFile.cpp
#include "vorbis/codec.h"
#include "vorbis/vorbisfile.h"
. . .
OggVorbis_File vf;
FILE* pFile;
pFile = fopen("verdes_2.ogg", "rb");
int err = err = ov_open(pFile, &vf, NULL, 0);
. . .
ov_clear(&vf);
In my app's directory, I have
ogg.dll
vorbis.dll
vorbisfile.dll
and have added to my project these files:
ogg\ogg.h
ogg\os_types.h
vorbis\codec.h
vorbis\vorbisfile.h
I am ignoring this library:
MSVCRT.lib
"Use run-time library" is set to Multi-threaded DLL.
I have removed vorbisfile.lib, thinking that I should be using vorbisfile.dll, and am now getting:
AudioFile.obj : error LNK2001: unresolved external symbol _ov_clear
AudioFile.obj : error LNK2001: unresolved external symbol _ov_open
Before my latest attempt to arrange all these files, ov_open was giving me an exception. I still have some basics to learn about libraries and linking, which no doubt is causing me my difficulties. Could someone help me out of this mess?
Steve R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/vorbis/attachments/20050617/08893d37/attachment.html
More information about the Vorbis
mailing list