[mythtv] multiple small win32 compile issues on HEAD...

buzz davidbuzz at gmail.com
Tue Feb 12 02:07:29 UTC 2008

HI All,

First issue:
freesurround.h seems to need this at the start, because 'uint' is not
defined otherwise:
#ifdef _WIN32
typedef unsigned int uint;

Second issue:
part of changeset [15893] doesn't work.  Reverting just the small
changes that were made to audiooutputdx.h/audiooutputdx.cpp seems to fix it
for me (these files are win32 specific, and deprecated anyway).

relevant compile output:
In file included from audiooutput.cpp:13: audiooutputdx.h:42:
error: `AudioCodecMode? <http://svn.mythtv.org/trac/wiki/AudioCodecMode>'
has not been declared audiooutputdx.h:42:
error: ISO C++ forbids declaration of `aom' with no type audiooutputdx.h:42:

error: `AUDIOCODECMODE_NORMAL' was not declared in this scope

The changes are to just remove the last parameter from Reconfigure (ie undo
these specific small changes):

Third issue:
the swab() function is being passed a bunch of stuff that is either wrong,
or needs to be explicitly cast under win32? (I'm not sure how to deal with
problematic code line is:
swab(data + 8, data + 8, enc_len);

audiooutputdigitalencoder.cpp: In function `int encode_frame(bool, unsigned
char*, size_t&)':
audiooutputdigitalencoder.cpp:305: error: invalid conversion from `unsigned
char*' to `const char*'
audiooutputdigitalencoder.cpp:305: error:   initializing argument 1 of `void
swab(const char*, char*, size_t)'
audiooutputdigitalencoder.cpp:305: error: invalid conversion from `unsigned
char*' to `char*'
audiooutputdigitalencoder.cpp:305: error:   initializing argument 2 of `void
swab(const char*, char*, size_t)'
make[2]: *** [audiooutputdigitalencoder.o] Error 1

(I didn't know how to fix the one above properly - what does 'swab' do?, so
I stuck an ifndef _WIN32 around it, which allowed me to continue the build)

I'm still building the rest, but I thought I'd get this out there, so it can
be fixed asap by someone with a commit bit.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20080212/00d987ad/attachment.htm 

More information about the mythtv-dev mailing list