*** voicefont.cpp.orig	Mon May 17 18:25:18 2004
--- voicefont.cpp	Mon May 17 19:03:15 2004
***************
*** 54,59 ****
--- 54,60 ----
      static char names[1000][80]; // worst-case space
      static int pos[1000]; // position of sample
      static int size[1000]; // length of clip
+     static int ignore[1000]; // Blank voice entry flag
      int voiceonly[1000]; // flag if this is voice only
      int count = 0;
      int count_voiceonly = 0;
***************
*** 104,109 ****
--- 105,112 ----
              continue;
          }
  
+ 	if (strstr(line, "voice: \"\"") != NULL) ignore[count-1] = 1;
+ 
          fields = sscanf(line, " voice: \"%[^\"]s", name);
          if (fields == 1)
          {
***************
*** 135,140 ****
--- 138,148 ----
              count_voiceonly++; 
          
          pos[i] = ftell(pFile);
+ 	if (ignore[i]) {
+             printf("%d: Ignoring empty voice string %s\n", i, names[i]);
+             size[i] = 0;
+ 	    continue;
+ 	}
          sprintf(mp3filename1, "%s%s.mp3", argv[2], names[i]);
          sprintf(mp3filename2, "%s%s.wav.mp3", argv[2], names[i]);
          mp3filename = mp3filename1;
***************
*** 212,215 ****
      fclose(pFile);
  
      return 0;
! }
\ No newline at end of file
--- 220,223 ----
      fclose(pFile);
  
      return 0;
! }

