💾 Archived View for mirrors.apple2.org.za › archive › apple2.caltech.edu › source › gsify.c captured on 2024-05-10 at 11:56:53.

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

/* gsify - v1.0 by Chris Shepherd
   This program converts Amiga sounds to Apple IIGS sounds by adding $80 to
   each byte. Sound Editor from Second Sight Software does this, but is
   limited to 64k. */
 
#include <stdio.h>
 
main(argc,argv)
int argc;
char **argv;
{
  FILE *src, *dest;
 
  if(argc!=3) { printf("Usage: gsify <source> <dest>\n"); exit(0); }
  if((src=fopen(argv[1],"r"))==NULL) {
    printf("gsify: couldn't open %s.\n",argv[1]);
    exit(0);
  }
  if((dest=fopen(argv[2],"w"))==NULL) {
    printf("gsify: couldn't open %s.\n",argv[2]);
    fclose(src);
    exit(0);
  }
  while(!feof(src)) fputc(fgetc(src)+128,dest);
  fclose(src);
  fclose(dest);
}