*** ../temp/Makefile	Sun Apr 25 14:23:59 1993
--- Makefile	Sat Jun 26 23:08:43 1993
***************
*** 41,52 ****
  	COPTS="$(MAIN_OPTS) -j -DSIGNED" LIBS="-laudio -lm"
  pc:
  	$(MAKE) all MACHINE=soundblaster O=.o MAIN_OPTS="-O" \
  	COPTS="$(MAIN_OPTS) -c" LIBS="-lm"
  linux:
! 	$(MAKE) all MACHINE=linux O=.o MAIN_OPTS="" \
! 	COPTS="$(MAIN_OPTS) -O6 -funroll-loops -c" LIBS=-lm
  	
  OBJECTS = main$O $(MACHINE)_audio$O read$O commands$O \
  audio$O automaton$O player$O getopt$O open$O tools$O \
  termio$O dump_song$O setup_audio$O notes$O
  
--- 41,52 ----
  	COPTS="$(MAIN_OPTS) -j -DSIGNED" LIBS="-laudio -lm"
  pc:
  	$(MAKE) all MACHINE=soundblaster O=.o MAIN_OPTS="-O" \
  	COPTS="$(MAIN_OPTS) -c" LIBS="-lm"
  linux:
! 	$(MAKE) all MACHINE=linux O=.o MAIN_OPTS="-s -N" \
! 	COPTS="$(MAIN_OPTS) -O2 -funroll-loops -c" LIBS=-lm
  	
  OBJECTS = main$O $(MACHINE)_audio$O read$O commands$O \
  audio$O automaton$O player$O getopt$O open$O tools$O \
  termio$O dump_song$O setup_audio$O notes$O
  
*** ../temp/linux_audio.c	Sun Apr 25 14:50:36 1993
--- linux_audio.c	Sat Jun 26 23:02:51 1993
***************
*** 52,62 ****
  		== -1)
         dsp_samplesize = 8;	/* Old kernel??? */
  #else
      if ((dsp_samplesize=ioctl(audio, SNDCTL_DSP_SAMPLESIZE, dsp_samplesize)) 
  		== -1)
!        dsp_samplesize = 8
  #endif
  
      stereo = s;
  
  #ifdef SOUND_VERSION
--- 52,62 ----
  		== -1)
         dsp_samplesize = 8;	/* Old kernel??? */
  #else
      if ((dsp_samplesize=ioctl(audio, SNDCTL_DSP_SAMPLESIZE, dsp_samplesize)) 
  		== -1)
!        dsp_samplesize = 8;
  #endif
  
      stereo = s;
  
  #ifdef SOUND_VERSION
*** ../temp/main.c	Sun Apr 25 15:13:42 1993
--- main.c	Sat Jun 26 23:09:22 1993
***************
*** 265,282 ****
  
  	nonblocking_io();
  
      if (argc == 1)
          {
!         fprintf(stderr, "Usage: %s %s", argv[0], USAGE);
  		end_all();
          }
  
      ask_freq = read_env("FREQUENCY", 0);
      oversample = read_env("OVERSAMPLE", 1);
      transpose = read_env("TRANSPOSE", 0);
      stereo = !getenv("MONO");
  
      create_notes_table();
  
          /* check the command name for default reading type */
  
--- 265,287 ----
  
  	nonblocking_io();
  
      if (argc == 1)
          {
!         printf("Usage: %s %s", argv[0], USAGE);
  		end_all();
          }
  
      ask_freq = read_env("FREQUENCY", 0);
      oversample = read_env("OVERSAMPLE", 1);
      transpose = read_env("TRANSPOSE", 0);
+ 
+ #ifdef linux
+     stereo = 0;                        /* default to stereo off */
+ #else
      stereo = !getenv("MONO");
+ #endif
  
      create_notes_table();
  
          /* check the command name for default reading type */
  
*** ../temp/read.c	Sun Apr 25 13:52:58 1993
--- read.c	Sat Jun 26 23:02:51 1993
***************
*** 282,292 ****
      new->info.pblocks = NULL;
      for (i = 0; i < NUMBER_SAMPLES; i++)
  		{
  		new->samples[i].finetune = 0;
  		new->samples[i].name = NULL;
! 		new->samples[i].length = NULL;
  		new->samples[i].start = NULL;
  		new->samples[i].rp_start = NULL;
  		}
      return new;
      }
--- 282,292 ----
      new->info.pblocks = NULL;
      for (i = 0; i < NUMBER_SAMPLES; i++)
  		{
  		new->samples[i].finetune = 0;
  		new->samples[i].name = NULL;
! 		new->samples[i].length = 0;
  		new->samples[i].start = NULL;
  		new->samples[i].rp_start = NULL;
  		}
      return new;
      }
*** ../temp/termio.c	Sun Apr 25 14:51:01 1993
--- termio.c	Sat Jun 26 23:02:51 1993
***************
*** 85,100 ****
  /* Commented out
  As Hannu said:
  The current Linux kernel interprets correctly the c_lflags field so it
  should be set like for the other systems. 
  		zap.c_lflag = 0;
!  */
  #else
  		zap.c_cc[VEOL] = 0;
  		zap.c_cc[VEOF] = 0;
- 		zap.c_lflag &= ~(ICANON | ECHO);
  #endif
  		ioctl(fileno(stdin), TCSETA, &zap);
  		is_fg = TRUE;
  		}
  	else
  		is_fg = FALSE;
--- 85,100 ----
  /* Commented out
  As Hannu said:
  The current Linux kernel interprets correctly the c_lflags field so it
  should be set like for the other systems. 
  		zap.c_lflag = 0;
! */
  #else
  		zap.c_cc[VEOL] = 0;
  		zap.c_cc[VEOF] = 0;
  #endif
+ 		zap.c_lflag &= ~(ICANON | ECHO);
  		ioctl(fileno(stdin), TCSETA, &zap);
  		is_fg = TRUE;
  		}
  	else
  		is_fg = FALSE;
