1033bc6
diff -up snack2.2.10/doc/python-man.html.BAD snack2.2.10/doc/python-man.html
1033bc6
--- snack2.2.10/doc/python-man.html.BAD	2008-06-11 15:12:44.000000000 -0400
1033bc6
+++ snack2.2.10/doc/python-man.html	2008-06-11 15:13:47.000000000 -0400
1033bc6
@@ -158,7 +158,7 @@ than or equal to 1, or <tt>"Mono"</tt> o
1033bc6
 be read -- not all of them can be <emph>written</emph>.)
1033bc6
   
    1033bc6
      
  • "WAV"
  • 1033bc6
    -  
  • "MP3"
  • 1033bc6
    +  
  • "MP3" (MP3 support is disabled in Fedora releases)
  • 1033bc6
       
  • "AU"
  • 1033bc6
       
  • "SND"
  • 1033bc6
       
  • "AIFF"
  • 1033bc6
    @@ -381,7 +381,7 @@ operation
    1033bc6
       
    1033bc6
     

    read (filename)

    1033bc6
      Reads new sound data from a file. Current supported file formats are WAV, 
    1033bc6
    -MP3, AU, SND, AIFF, SD, SMP, CSL, and RAW binary. The command returns the 
    1033bc6
    +MP3 (disabled in Fedora), AU, SND, AIFF, SD, SMP, CSL, and RAW binary. The command returns the 
    1033bc6
     file format detected. It is possible to force a file to be read as RAW using
    1033bc6
     by setting the option fileformat=RAW. In this case, properties of
    1033bc6
     the sound data can be specified by hand, using the rate, channels, encoding,
    1033bc6
    diff -up snack2.2.10/generic/jkSound.h.BAD snack2.2.10/generic/jkSound.h
    1033bc6
    --- snack2.2.10/generic/jkSound.h.BAD	2008-06-11 15:15:03.000000000 -0400
    1033bc6
    +++ snack2.2.10/generic/jkSound.h	2008-06-11 15:15:44.000000000 -0400
    1033bc6
    @@ -413,6 +413,9 @@ extern int swapCmd(Sound *s, Tcl_Interp 
    1033bc6
     #define MP3_STRING "MP3"
    1033bc6
     #define CSL_STRING "CSL"
    1033bc6
     
    1033bc6
    +/* 
    1033bc6
    + * MP3 code is disabled due to patents.
    1033bc6
    + *
    1033bc6
     extern char *GuessMP3File(char *buf, int len);
    1033bc6
     
    1033bc6
     extern int GetMP3Header(Sound *s, Tcl_Interp *interp, Tcl_Channel ch,
    1033bc6
    @@ -434,6 +437,8 @@ extern void FreeMP3Header(Sound *s);
    1033bc6
     
    1033bc6
     extern int ConfigMP3Header(Sound *s, Tcl_Interp *interp, int objc,
    1033bc6
     			   Tcl_Obj *CONST objv[]);
    1033bc6
    + */
    1033bc6
    +
    1033bc6
     
    1033bc6
     typedef enum {
    1033bc6
       SNACK_WIN_HAMMING,
    1033bc6
    diff -up snack2.2.10/unix/Makefile.in.BAD snack2.2.10/unix/Makefile.in
    1033bc6
    --- snack2.2.10/unix/Makefile.in.BAD	2008-06-11 15:09:59.000000000 -0400
    1033bc6
    +++ snack2.2.10/unix/Makefile.in	2008-06-11 15:10:14.000000000 -0400
    1033bc6
    @@ -43,13 +43,13 @@ SHLIB_SUFFIX = @SHLIB_SUFFIX@
    1033bc6
     all: libsound${SHLIB_SUFFIX} libsnack${SHLIB_SUFFIX} @DOSTUBLIB@ @LIBNIST@ @LIBOGG@ editversion
    1033bc6
     
    1033bc6
     OBJSO = sound.o jkSound.o jkSoundEngine.o jkSoundEdit.o jkSoundFile.o \
    1033bc6
    -	g711.o @AOBJ@ jkFormatMP3.o jkSoundProc.o ffa.o jkPitchCmd.o \
    1033bc6
    +	g711.o @AOBJ@ jkSoundProc.o ffa.o jkPitchCmd.o \
    1033bc6
     	@STUBINITOBJ@ jkAudio.o jkMixer.o shape.o jkFilter.o jkSynthesis.o \
    1033bc6
     	jkFilterIIR.o jkGetF0.o sigproc.o jkFormant.o sigproc2.o
    1033bc6
     
    1033bc6
     OBJSN = snack.o jkSound.o jkSoundEngine.o jkSoundEdit.o jkSoundFile.o \
    1033bc6
     	jkCanvSpeg.o jkCanvWave.o jkCanvSect.o ffa.o g711.o @AOBJ@ \
    1033bc6
    -	jkFormatMP3.o jkSoundProc.o jkPitchCmd.o @STUBINITOBJ@ \
    1033bc6
    +	jkSoundProc.o jkPitchCmd.o @STUBINITOBJ@ \
    1033bc6
     	jkAudio.o jkMixer.o shape.o jkFilter.o jkSynthesis.o jkFilterIIR.o \
    1033bc6
     	jkGetF0.o sigproc.o jkFormant.o sigproc2.o
    1033bc6
     
    1033bc6
    @@ -73,9 +73,6 @@ jkSoundFile.o: $(GENERIC_DIR)/jkSoundFil
    1033bc6
     g711.o: $(GENERIC_DIR)/g711.c
    1033bc6
     	$(CC) -c $(CFLAGS) $(GENERIC_DIR)/g711.c
    1033bc6
     
    1033bc6
    -jkFormatMP3.o: $(GENERIC_DIR)/jkFormatMP3.c
    1033bc6
    -	$(CC) -c $(CFLAGS) $(GENERIC_DIR)/jkFormatMP3.c
    1033bc6
    -
    1033bc6
     jkSoundProc.o: $(GENERIC_DIR)/jkSoundProc.c
    1033bc6
     	$(CC) -c $(CFLAGS) $(GENERIC_DIR)/jkSoundProc.c
    1033bc6
     
    1033bc6
    diff -up snack2.2.10/unix/snack.tcl.BAD snack2.2.10/unix/snack.tcl
    1033bc6
    --- snack2.2.10/unix/snack.tcl.BAD	2008-06-11 15:10:44.000000000 -0400
    1033bc6
    +++ snack2.2.10/unix/snack.tcl	2008-06-11 15:11:26.000000000 -0400
    1033bc6
    @@ -216,7 +216,7 @@ namespace eval snack {
    1033bc6
     	if {$::tcl_platform(platform) == "windows"} {
    1033bc6
     	    set l [concat {{{MS Wav Files} {.wav}} {{Smp Files} {.smp}} {{Snd Files} {.snd}} {{AU Files} {.au}} {{AIFF Files} {.aif}} {{AIFF Files} {.aiff}} {{Waves Files} {.sd}} {{MP3 Files} {.mp3}} {{CSL Files} {.nsp}}} $loadTypes {{{All Files} * }}]
    1033bc6
     	} else {
    1033bc6
    -	    set l [concat {{{MS Wav Files} {.wav .WAV}} {{Smp Files} {.smp .SMP}} {{Snd Files} {.snd .SND}} {{AU Files} {.au .AU}} {{AIFF Files} {.aif .AIF}} {{AIFF Files} {.aiff .AIFF}} {{Waves Files} {.sd .SD}} {{MP3 Files} {.mp3 .MP3}} {{CSL Files} {.nsp .NSP}}} $loadTypes {{{All Files} * }}]
    1033bc6
    +	    set l [concat {{{MS Wav Files} {.wav .WAV}} {{Smp Files} {.smp .SMP}} {{Snd Files} {.snd .SND}} {{AU Files} {.au .AU}} {{AIFF Files} {.aif .AIF}} {{AIFF Files} {.aiff .AIFF}} {{Waves Files} {.sd .SD}} {{CSL Files} {.nsp .NSP}}} $loadTypes {{{All Files} * }}]
    1033bc6
     	}
    1033bc6
     	return [swapListElem $l $filebox(l$fmt)]
    1033bc6
         }
    1033bc6
    @@ -229,7 +229,6 @@ namespace eval snack {
    1033bc6
         set filebox(SD) .sd
    1033bc6
         set filebox(SND) .snd
    1033bc6
         set filebox(AIFF) .aif
    1033bc6
    -    set filebox(MP3) .mp3
    1033bc6
         set filebox(CSL) .nsp
    1033bc6
     
    1033bc6
         set filebox(lWAV) 0
    1033bc6
    @@ -239,7 +238,7 @@ namespace eval snack {
    1033bc6
         set filebox(lAIFF)  4
    1033bc6
         # skip 2 because of aif and aiff
    1033bc6
         set filebox(lSD)  6
    1033bc6
    -    set filebox(lMP3)  7
    1033bc6
    +    # skip 1 because of mp3
    1033bc6
         set filebox(lCSL)  8
    1033bc6
         set filebox(lRAW) end
    1033bc6
         # Do not forget to update indexes
    1033bc6
    @@ -350,7 +349,6 @@ namespace eval snack {
    1033bc6
         set filebox(.sd) SD
    1033bc6
         set filebox(.aif) AIFF
    1033bc6
         set filebox(.aiff) AIFF
    1033bc6
    -    set filebox(.mp3) MP3
    1033bc6
         set filebox(.nsp) CSL
    1033bc6
         set filebox() WAV
    1033bc6
     
    1033bc6
    diff -up snack2.2.10/generic/jkSoundFile.c.BAD snack2.2.10/generic/jkSoundFile.c
    1033bc6
    --- snack2.2.10/generic/jkSoundFile.c.BAD	2008-06-11 15:22:35.000000000 -0400
    1033bc6
    +++ snack2.2.10/generic/jkSoundFile.c	2008-06-11 15:24:16.000000000 -0400
    1033bc6
    @@ -35,9 +35,11 @@ GuessWavFile(char *buf, int len)
    1033bc6
     {
    1033bc6
       if (len < 21) return(QUE_STRING);
    1033bc6
       if (strncasecmp("RIFF", buf, strlen("RIFF")) == 0) {
    1033bc6
    +/*
    1033bc6
         if (buf[20] == 85) {
    1033bc6
           return(MP3_STRING);
    1033bc6
         }
    1033bc6
    +*/
    1033bc6
         if (strncasecmp("WAVE", &buf[8], strlen("WAVE")) == 0) {
    1033bc6
           return(WAV_STRING);
    1033bc6
         }
    1033bc6
    @@ -3305,6 +3307,8 @@ Snack_FileFormat snackRawFormat = {
    1033bc6
       (Snack_FileFormat *) NULL
    1033bc6
     };
    1033bc6
     
    1033bc6
    +/*
    1033bc6
    +
    1033bc6
     Snack_FileFormat snackMp3Format = {
    1033bc6
       MP3_STRING,
    1033bc6
       GuessMP3File,
    1033bc6
    @@ -3321,6 +3325,8 @@ Snack_FileFormat snackMp3Format = {
    1033bc6
       (Snack_FileFormat *) NULL
    1033bc6
     };
    1033bc6
     
    1033bc6
    +*/
    1033bc6
    +
    1033bc6
     Snack_FileFormat snackSmpFormat = {
    1033bc6
       SMP_STRING,
    1033bc6
       GuessSmpFile,
    1033bc6
    @@ -3427,15 +3433,13 @@ SnackDefineFileFormats(Tcl_Interp *inter
    1033bc6
       snackAuFormat.nextPtr   = &snackSmpFormat;
    1033bc6
       snackSmpFormat.nextPtr  = &snackCslFormat;
    1033bc6
       snackCslFormat.nextPtr  = &snackSdFormat;
    1033bc6
    -  snackSdFormat.nextPtr   = &snackMp3Format;
    1033bc6
    -  snackMp3Format.nextPtr  = &snackRawFormat;
    1033bc6
    +  snackSdFormat.nextPtr   = &snackRawFormat;
    1033bc6
       snackRawFormat.nextPtr  = NULL;
    1033bc6
     }
    1033bc6
     */
    1033bc6
     {
    1033bc6
       snackFileFormats        = &snackWavFormat;
    1033bc6
    -  snackWavFormat.nextPtr  = &snackMp3Format;
    1033bc6
    -  snackMp3Format.nextPtr  = &snackAiffFormat;
    1033bc6
    +  snackWavFormat.nextPtr  = &snackAiffFormat;
    1033bc6
       snackAiffFormat.nextPtr = &snackAuFormat;
    1033bc6
       snackAuFormat.nextPtr   = &snackSmpFormat;
    1033bc6
       snackSmpFormat.nextPtr  = &snackCslFormat;