Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!agate!usenet From: dansu@volcano.berkeley.edu (Dan Su) Newsgroups: comp.sys.amiga.tech Subject: Re: Mac sounds to Amiga IFF sounds... KILLER! Message-ID: <1990Aug1.224448.20499@agate.berkeley.edu> Date: 1 Aug 90 22:44:48 GMT References: <949.26b549a8@desire.wright.edu> <6403@wolfen.cc.uow.oz> Sender: usenet@agate.berkeley.edu (USENET Administrator;;;;ZU44) Reply-To: dansu@volcano.berkeley.edu (Dan Su) Organization: University of California, Berkeley Lines: 41 In article <6403@wolfen.cc.uow.oz> zahra@wolfen.cc.uow.oz (Andrew Zahra Telecom) writes: >In article <949.26b549a8@desire.wright.edu>, arc@desire.wright.edu writes: >> >> I know this is probably not a big deal to many, but I'd like to get a sound >> converter for Amiga that converts Mac sounds to IFF. There's so many Mac > > I have done this successfully with a short C prg - all you have to do >is read in the mac file a byte at a time and flip the high (leftmost) bit. >so in C you need to xor the byte with 128.voila - file is in amiga dump form - >now just read it into a music prg and save it as iff if you want in in iff form. > > Andrew Yes, this is essentially a one line program. Here it is in C: #include main() { int c; while ((c = getchar()) != EOF) putchar(c - 128); } USAGE: convert < sound.mac > sound.amiga convert < sound.amiga > sound.mac Piece of cake! Just remember, the header is destroyed in the conversion process so you'll have to fix it up a bit. For an Amiga, you can load the file into a music program and save it as an IFF file (as the gentleman above suggested). Or you can use a sound player program like "sound" that will play any file and figure out the correct playback rate (a messy solution but it works :-) If you're converting from Amiga to Mac, you'll have to use a program (on a Mac) such as ResEdit or a DA such as DiskTop or DeskZap to change the file type to FSSD and the creator to FSSC so a Mac will recognize the file as a sound file. -Dan Su dansu@volcano.berkeley.edu