1
0
mirror of http://mpg123.de/trunk/.git synced 2025-10-26 15:31:15 +03:00
Files
mpg123/doc
thor 8f5bafad10 update contributors and supporters
git-svn-id: svn://scm.orgis.org/mpg123/trunk@887 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-08-06 21:12:01 +00:00
..
2006-08-21 18:24:58 +00:00
2006-08-21 18:24:58 +00:00
2006-08-21 23:07:26 +00:00
2006-08-29 11:57:48 +00:00
2006-08-21 17:14:38 +00:00
2006-08-21 17:14:43 +00:00
2006-08-21 17:14:55 +00:00
2006-08-21 17:15:30 +00:00
2006-08-30 13:18:11 +00:00
2007-08-06 21:12:01 +00:00

Win32 Port by Tony Million <k946611@atlas.king.ac.uk>

This is a `Quick'n'Dirty` hack to make things work on Win32 platforms...

I've #ifndef'd out all the code which didn't compile, and in certain cases
(httpget.c and xfermem.c) I've added 'empty' functions to make it link,
without modifying the main code too much...

I will write a replacement httpget.c for win32 if there is enough demand.

I have also written a `real` windows (with GUI etc..) version of this program.
However I have significantly modified all of the code (and converted it to C++
classes etc.) so it doesn't infact have any simmilarity to Mpg-123.  Except
this code is where I got my 'Ideas' from :) .. Thanks Michael!

There isn't much else to say except how to compile it:

you NEED to make sure _WIN32 is defined (the compiler should take care of this,
but just in case .......). I've added a #ifndef to make sure that `WIN32`
(note the lack of _ ) gets defined. Then include all of the rest of the files.

You can leave out decode.c and dct64.c (the _i386.c versions compile better...)
however you can include them because I've #ifndef'd then out to make sure the
objects dont conflict in the final link.

The MAJOR work was done in Audio.C. Here I have totally written a buffered
windows MultiMedia system output using a function callback system.
I've tested it successfully under 95 and NT. you can change the
MAX_BUFFERS = 6 to whatever you want... this is 6 * 16k buffers (about 96k = enough
for half a second of sound. (which is ok on anything over a p90). you'l want to
bump this up if you're using a 486....

Also you can add a 

SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS);

to somewhere in the beginning of main() function!.

Thats all for the moment folks - Enjoy you're Mpeg 1,2,3 decoding :)!

---

note: for VC++ 4.0 you can build the binary using 'Makefile.win32'
      call 'msdev/bin/vcvers32.bat' once and then 'nmake -f Makefile.win32'