Changes to Nyquist:

In audiomac.c:

(Do byteswap:)

    long samples = srclength / 2;
    short *srcs = (short *)src;
    short *dsts = (short *)dst;
    long i;
      
    for(i=0; i<samples; i++) {
      //dsts[i] = srcs[i];
      
      // For Nyquist only, do byte-swap...
      dsts[i] = (short)(((((unsigned short)srcs[i]) & 0xFF) << 8) + ((((unsigned short)srcs[i]) & 0xFF00) >> 8));
    }

In sndwrite.c (sound_save_sound and sound_save_array both):

    cvtfn = find_cvt_to_fn(snd, buf);
    
>   #ifdef macintosh
>   if (player) {
>     gprintf(TRANS, "Playing audio: Click and hold mouse button to stop playback.\n");
>   }
>   #endif

    while (n > 0) {
	long togo;
	float peak;
	sample_block_type sampblock = sound_get_next(s, &blocklen);
#ifdef SNAPSHOTS
	printf(".");
	if (sound_created_flag) {
	    printf("SNAPSHOT: ");
	    sound_print_tree(printing_this_sound);
	    sound_created_flag = false;
	}
	fflush(stdout);
#endif
	if (sampblock == zero_block || blocklen == 0) {
	    break;
	}
	togo = min(blocklen, n);

	buflen = (*cvtfn)((void *) buf, (void *) sampblock->samples,
			  togo, s->scale, &peak);
	if (peak > max_sample) max_sample = peak;
	
>   #ifdef macintosh
>   if (Button()) {
>     if (player) {
>       snd_reset(player);
>     }
>     gprintf(TRANS, "\n\nStopping playback...\n\n\n");
>     break;
>   }
>   #endif

In cext.h:

+   #ifdef round
+   #undef round
+   #endif

In fft.c:

  /* perform the fft: */
  fftnf(1, (const int *)&len, temp_fft, temp_fft + len, 1, -1.0);
           ^^^^^^^^^^^^^

In userio.h:

    #ifdef MACINTOSH
+   #undef false
+   #undef true
+   #include <MacTypes.h>
    #define TRANS    (long)    0
    #define ERROR    (long)    1
    #define FATAL    (long)    2
    #define GDEBUG   (long)    3
    #endif

In tran/ifft.c:
    
        #ifndef macintosh
        #include "crtdbg.h"
        #endif
    
        #ifndef macintosh
		_CrtSetDbgFlag(_CRTDBG_CHECK_ALWAYS_DF);
		#endif    

In userio.c:

        strcpy((char *)Pstr, str);
*   	C2PStr((char *)Pstr);
    	strcpy((char *)Pfn, fn);
*   	C2PStr((char *)Pfn);
    
Get from Audacity:
    snd.c
    sndconfig.h
    sndheader.c
    sndio.c

