Commandline Options in output sa.c

From: Michael J McGonagle (fndsnd@earthlink.net)
Date: Sun Jan 30 2000 - 03:16:32 EST


Hi,

I had noticed this question once many months ago, but was not sure if
there was a resolution. I have been messing with writing a control
driver and have been making these changes by hand. I figured out how to
change sfront to add these modifications, and it only required changing
one file (csrclib.c). This is what I have been using, maybe it could be
added to sfront??

...this is defined with all the other csysi things...
#define COMMANDLINE(argc, argv) csysi_commandline(argc, argv)

void csysi_commandline(int argc, char *argv[]) {
 // do your init
}

...this is where the changes to sfront would be...
#ifndef COMMANDLINE
#define COMMANDLINE(argc, argv)
#endif

main(int argc, char *argv[])

{
  srand(9753193L);
  system_init();
  effects_init();
  main_initpass();
  COMMANDLINE(argc, argv);
...remainder of file...

Mike



This archive was generated by hypermail 2b29 : Mon Jan 28 2002 - 12:03:51 EST