Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!shelby!rutgers!faatcrl!jimb From: jimb@faatcrl.UUCP (Jim Burwell) Newsgroups: comp.sys.amiga.programmer Subject: Re: IFF FORM 8SVX chunk "CHAN" format? Message-ID: <1006@faatcrl.UUCP> Date: 18 Feb 91 06:02:15 GMT References: <1991Feb17.183022.1@happy.colorado.edu> Organization: FAA Technical Center, Atlantic City NJ Lines: 42 kskelm@happy.colorado.edu writes: > Good day!! > > Just what is the format of a CHAN chunk, as found in an IFF 8SVX FORM? > The value of "4" broke my hack, so I really need to know. (What values mean, >not the chunk's size). That CHAN hunk is something added by SunRize for Perfect Sound's stereo recording capabilty. Here are the defines for it: #define RIGHT 4 #define LEFT 2 #define STEREO 6 This tells you to either play the sample over a left or right channel, or play the sample in stereo. If it is stereo, the sample data for the two channels which are to be played simultaneosly are in the BODY, left channel sample data followed by right channel sample data. The left and right samples are the same length, so dividing the sample length by two gives you the length of both channels. You then just read the first half of the BODY into your left channel buffer, then the second half into your right channel buffer. C'ya, Jim -- +--------------------------+ _ |INET: jimb@faatcrl.uucp | | \ |UUCP: ..!rutgers!faatcrl!| _| \______________________________________ | jimb | - ______ ________________ \_`, +------------------------- + -(_______ -= -= USAF ) `--------=============----------------` - - - - ` . . - - .*` .* ;`*,`., `, ,`.*.*. * ______________________________________* * ` ^ *____________________________ IRAQ