Specifications

Apple IIGS
#76: Miscellaneous Resource Formats 1 of 8
Apple II
Technical Notes
Developer Technical Support
®
Apple IIGS
#76: Miscellaneous Resource Formats
Revised by: Matt Deatherage May 1992
Written by: Matt Deatherage, C.K. Haun, Llew Roberts & Dave Lyons January 1990
This Technical Note describes resource structure formats for previously-unpublished types.
Changes since December 1991: Added information on rFont resources. Clarified the note
about rVersion resources to note that version numbers must increase with subsequent releases
for the Finder’s benefit.
The format used to describe the resources is similar to that used in File Type Notes, where the
offsets, given in the form (+xxx), determine the offset from the beginning of the resource.
Sampled Sound Resource (Type: $8024, rSoundSample)
The following describes the Sampled Sound resource format. It consists of a ten-byte header
followed by the sample data bytes.
Format (+000) Word This must always be zero.
Wave Size (+002) Word Sample size in pages (256 bytes per page). For
example, an 8K sample takes 32 pages; a 128K
sample requires $200 pages.
Rel Pitch (+004) Word The high byte of this word is a semitone value; the
low byte is a fractional semitone. These values are
used to tune the sample to correct pitch. See
HyperCard IIGS Technical Note #3, Pitching Sampled
Sound.
Stereo (+006) Word The output channel for this sound is in the low
nibble of this word.
Sample rate (+008) Word The sampling rate of the sound, in Hertz (Hz).
Sound (+010) Bytes The sampled sound data. The bytes are all 8-bit
samples. The sample starts here and continues until
the end of the resource.