Inside Macintosh: Sound

| Previous | Chapter contents | Chapter top | Section top | Next |

Legacy Documentclose button

Important: Sound Input Manager is deprecated as of Mac OS X v10.5. For new audio development in Mac OS X, use Core Audio. See the Audio page in the ADC Reference Library.

Leftover Blocks

The leftOverSamples field of a compressed sound header contains a pointer to a leftover block, defined by the LeftOverBlock data type.

TYPE LeftOverBlock =
RECORD
    count:              LongInt;
    sampleArea:         PACKED ARRAY[0..leftOverBlockSize - 1] OF Byte;
END;

count

The number of bytes in the sampleArea field.

sampleArea

An array of bytes. This field contains samples that are truncated across invocations of the compression algorithm. The size of this field is defined by a constant.
                    CONST
                        leftOverBlockSize               = 32;

© 1999 Apple Computer, Inc.

Inside Macintosh: Sound

| Previous | Chapter contents | Chapter top | Section top | Next |

Legacy Documentclose button

Important: Sound Input Manager is deprecated as of Mac OS X v10.5. For new audio development in Mac OS X, use Core Audio. See the Audio page in the ADC Reference Library.