sfront builds for WIN32?

From: Richard Dobson (rwd@cableinet.co.uk)
Date: Fri Aug 20 1999 - 20:31:26 EDT


Is anyone managing to compile sfront with VC++ under Windows
9x/NT/Win2K?

My main problem is with the special "N$" tag used in fprintf(), which is
certainly 'cool', but not supported by VC++ (I'm not convinced it is
part of the standard, anyway...yet another 'special' gnu trick to adopt
and extend standard C :-) ).

i.e in this typical line of code:

fprintf(outfile, " x1 = (x1 %2$c va_%1$s) ? x1 : va_%1$s;\n",
                tptr->down->next->down->val,c);

the only solution I have is to write out each occurrence in full:

fprintf(outfile, " x1 = (x1 %c va_%s) ? x1 : va_%s;\n",c,
                tptr->down->next->down->val,tptr->down->next->down->val);

Unfortunately there is a vast number of these lines throughout the code!
A lot of the time the sequence "%1$s" is used for just the one argument
- i.e quite unnecessarily!

It seems to me that once this is solved, sfront will compile quite
easily - the few other changes I have had to make relate mainly to
compiler definitions, function declarations, and the absence of
unistd.h.

Once I have it building correctly, I can add all sorts of snappy things,
such as extended WAV support (for WAVE-FORMAT-EXTENSIBLE, floating-point
and 24bit files, and so on).

I do, of course, have the whole thing built and working under Linux (so
at least I know what a sa.c file ~should~ look like), but I only have a
SoundBlaster available, whereas under Windows2000 WAVE-EX files are
automatically down-mixed and dithered to the hardware (hence native
support for floating-point files), and under WIn95 I can play
multi-channel files through the Creamware Pulsar.

Richard Dobson

-- 
Test your DAW with my Soundcard Attrition Page!
http://wkweb5.cableinet.co.uk/rwd (LU: 6th July 1999)
CDP: http://www.bath.ac.uk/~masjpf/CDP/CDP.htm (LU: 14th June 1999)



This archive was generated by hypermail 2b29 : Wed May 10 2000 - 12:15:26 EDT