[vorbis-dev] Problems with vorbis sdk

Chris Wolf cwolf at starclass.com
Tue Sep 11 16:31:30 PDT 2001



>stepping through the code it fails on the call to vorbis_encode_init. I
>can
>place the two lines opening the i/o files (the only file access which
>precedes that call) after this call and it still fails at the call to
>vorbis_encode_init. This would seem to me to indicate that the failure is
>in
>

I checked in some fixes to solve this problem when building DLLs int the MSVC environment.
(and I moved those code modules at Monty's request out of vorbis/lib to vorbis/win32/src)

The fixes are only brought in when _MSC_VER is defined, which is done implicitly when compiling
with MSVC.  I could have choosen to turn on that code with WIN32, but was concerned that the issue
was confined to the MSVC environment, not necessarliy other windows compiler environments, such
as Cygwin GNU gcc, or Borland.  

If you want to see if the fixes work under Borland, and you are building vorbis.dll, AND a separate 
vorbisenc.dll, then try:

when building vorbis.dll, then define VORBIS_DLL and STANDALONE_VORBISENC_DLL
when building vorbisenc.dll just define STANDALONE_VORBISENC_DLL

Check the following files:
vorbis/lib/registry.c                       r 1.10
vorbis/lib/vorbisenc.c                    r 1.15
vorbis/win32/src/dllmain.c
vorbis/win32/src/shmmap.h
vorbis/win32/src/shmmap_c.h

And wherever you see "#ifdef _MSC_VER", replace that with "#if defined(_MSC_VER) || defined(BORLAND)

where "BORLAND" is whatever predefined precompiler switch indicating the Borland compiler.  If that
solves the dynamic linking problem for Borland, can you send me the patches?

Also I would not waste time debating command line vs. windows, or windows vs. UNIX, since the main
goal here is to evangelize Ogg/Vorbis, not any specific OS -- we should try to accomodate both.
I personally prefer UNIX and command line tools, but wouldn't expect the average end PC user to have the
same sentiment.  However, I would like to see the average PC user switch from mp3 to ogg, so I think it's 
important to support ogg on windows.

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list