Article 471 (10 more) in comp.binaries.amiga (moderated): From: page@swan.ulowell.edu (Bob Page) Subject: v89i034: ifflib - iff utility library v16.1 Message-ID: <12224@swan.ulowell.edu> Date: 15 Mar 89 16:03:35 GMT Organization: University of Lowell, Computer Science Dept. Lines: 760 Submitted-by: kim@uts.amdahl.com (Kim E. DeVaughn) Posting-number: Volume 89, Issue 34 Archive-name: iff/ifflib161.uu1 Changes Since V15.3: Note that this version is fully downward-compatible to V15.3. * There was a bug in the DecodePic() routine which called the guru if the width of the picture was not a multiple of 16. It's fixed now. * The GetViewModes() routines now calculates the viewmodes correctly for all picture sizes, including Super-Overscan (produced by DigiView 3.0). * When you open an IFF file with the OpenIFF() call, memory is allocated and the file is read into that memory. Normally, all files are loaded into whatever memory is available, but '8SVX' files are always loaded to CHIP memory (the memory which is accessable by the Amiga's custom chips). This solution is good for playing IFF sounds, but it is not satisfactory for some other applications. The solution of this problem is quite easy: a new routine called 'NewOpenIFF', which allows you to specify the type of memory for the file. So if you want to load an IFF instrument into any RAM, the right command is: 'f=NewOpenIFF(filename,0L)' or 'f=OpenIFF(filename,MEMF_PUBLIC)'. You can use any memory attributes you want (PUBLIC,CHIP,FAST...). * The file 'iff.h' is now split into two files: 'iff.h', which contains the structure definitions and function declarations, and 'IffGlue.asm', which contains the C to Assembler interface routines. * The file 'IFFPragmas.h" is added to support the Lattice C compiler. It was taken from an usenet article by Lyle E. Levine. Thanks! * The demo file 'ShowIFF.c' now correctly handles overscan pictures.