~ubuntu-branches/ubuntu/lucid/mpg123/lucid

« back to all changes in this revision

Viewing changes to README.WIN32

Tags: upstream-0.60
ImportĀ upstreamĀ versionĀ 0.60

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Win32 Port by Tony Million <k946611@atlas.king.ac.uk>
2
 
 
3
 
This is a `Quick'n'Dirty` hack to make things work on Win32 platforms...
4
 
 
5
 
I've #ifndef'd out all the code which didn't compile, and in certain cases
6
 
(httpget.c and xfermem.c) I've added 'empty' functions to make it link,
7
 
without modifying the main code too much...
8
 
 
9
 
I will write a replacement httpget.c for win32 if there is enough demand.
10
 
 
11
 
I have also written a `real` windows (with GUI etc..) version of this program.
12
 
However I have significantly modified all of the code (and converted it to C++
13
 
classes etc.) so it doesn't infact have any simmilarity to Mpg-123.  Except
14
 
this code is where I got my 'Ideas' from :) .. Thanks Michael!
15
 
 
16
 
There isn't much else to say except how to compile it:
17
 
 
18
 
you NEED to make sure _WIN32 is defined (the compiler should take care of this,
19
 
but just in case .......). I've added a #ifndef to make sure that `WIN32`
20
 
(note the lack of _ ) gets defined. Then include all of the rest of the files.
21
 
 
22
 
You can leave out decode.c and dct64.c (the _i386.c versions compile better...)
23
 
however you can include them because I've #ifndef'd then out to make sure the
24
 
objects dont conflict in the final link.
25
 
 
26
 
The MAJOR work was done in Audio.C. Here I have totally written a buffered
27
 
windows MultiMedia system output using a function callback system.
28
 
I've tested it successfully under 95 and NT. you can change the
29
 
MAX_BUFFERS = 6 to whatever you want... this is 6 * 16k buffers (about 96k = enough
30
 
for half a second of sound. (which is ok on anything over a p90). you'l want to
31
 
bump this up if you're using a 486....
32
 
 
33
 
Also you can add a 
34
 
 
35
 
SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS);
36
 
 
37
 
to somewhere in the beginning of main() function!.
38
 
 
39
 
Thats all for the moment folks - Enjoy you're Mpeg 1,2,3 decoding :)!
40
 
 
41
 
---
42
 
 
43
 
note: for VC++ 4.0 you can build the binary using 'Makefile.win32'
44
 
      call 'msdev/bin/vcvers32.bat' once and then 'nmake -f Makefile.win32'
45
 
       
46