Hi all,

A couple of small changes were needed to get 3.32 working with MSVC

1) New Makefile.MSVC to cope with filename changes. Change c_sources
definition to read

c_sources = \
  main.c \
  common.c \
  encode.c \
  formatBitstream.c \
  get_audio.c \
  l3bitstream.c \
  id3tag.c \
  ieeefloat.c \
  l3psy.c \
  lame.c \
  mdct.c \
  portableio.c \
  quantize.c \
  reservoir.c \
  subs.c \
  tables.c \
  takehiro.c \
  VbrTag.c \
  version.c \
  gtkanal.c \
  gpkplotting.c \
  mpglib\common.c \
  mpglib\dct64_i386.c \
  mpglib\decode_i386.c \
  mpglib\layer3.c \
  mpglib\tabinit.c \
  mpglib\interface.c \
  mpglib\main.c

2) At top of takehiro.c, add

#ifdef _MSC_VER
# define inline __inline
#endif

That's it!

Also, I've updated my timestatus() stuff to include times() support. Other
improvements over existing version

1) Fixed potential divide by zero in "percent" calculation
2) On non-HAVETIMES systems, uses ISO time()/difftime() rather than clock()
(which didn't make much sense)
3) WinNT/Win2K GetProcessTimes() support under MSVC
4) Much tidier, IMO ;)

I've attached these changes in lame_timestatus.c. There are comments
explaining how to apply them.

-- Mat.

lame_timestatus.c

Reply via email to