Csound Csound-dev Csound-tekno Search About

[Csnd] Amiga version

Date1999-11-02 20:55
FromAnders Andersson
Subject[Csnd] Amiga version
Hello!

It was a while ago since I last touched the Amiga version of CSound, but
now I have got a new job where I can work with CSound on payed time, so
now I will be more productive.. =)

If someone is interested in making the official changes to the public
source, I've summed these here:

1. There seems to be a problem with using "stdin" and "stdout" outside of
   any function with GCC on Amiga, so I had to patch three sources, namely
   "rdscor.c", "midirecv.c" and "pvanal.c".
   To solve it, I just put "NULL" instead of "stdin" or "stdout". It seems
   to work so I guess the pointers are initiated elswhere in the code
   before they are used.
   If we can't have "NULL" in the public source (yes, i know, it's
   ugly..), then it would be nice if I got a conditional like this in the
   three sources:
------------------------
 #ifdef AMIGA
  FILE *oscfp = NULL;
 #else
  FILE *oscfp = stdout;
 #endif
------------------------
   Is this possible?

2. In the file "midirecv.c" I needed to include .
   This would be nice to have as a conditional, like:
---------------------
 #ifdef AMIGA
 # include 
 #endif
---------------------

3. This is a general bug in the source.
   At the bottom of the functions sfoppenout() and sfcloseout() in the
   file "soundio.c" you have missed to add a final #else to the long
   conditional.
   #else "(IRCAM)"); should be inserted before the final #end.

4. In the file "sysdep.h" I would like to add:
--------------------------------
 #ifdef AMIGA
  #define tell(x) lseek(x,0L,1)
 #endif
--------------------------------


These are the only things that need to be done. I will prepare a specific
makefile.amiga and README.amiga that I will send together with a
compilation to put on the Csound Front Page and Aminet (huge
PD/Freeware/Shareware internetsite for all kind of Amiga-related stuff) as
soon I've tested some different orc's and scores.


Happy Csounding!

 -----------------------
    Anders Andersson,
     Elektron ESI AB,
   pipe@elektron-esi.se

--