ADC Home > Reference Library > Technical Q&As > Legacy Documents > Mac OS 9 & Earlier >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Static Sound on PCI Macs

Q My application records the user's voice and then plays it back. It works without a problem on every Mac except the new PCI Macs, where the sound plays back as loud static. What's wrong?

A The new Macintoshes default to recording 16-bit stereo sound instead of the 8-bit mono sound that older Macintoshes defaulted to. 16-bit sounds are stored in two's complement format and 8-bit sounds are usually stored in offset binary, or one's complement. Trying to play a two's complement formatted sound as if it were an offset binary formatted sound causes the static-like sound you are hearing.

The solution is to use SPBGetDeviceInfo with the siNumberChannels andsiSampleSize selectors to find out with what format you will be recording. If you don't like the format, use SPBSetDeviceInfo call to change it to what you want, but make sure you check the error code to verify that the setting has changed.

[Jun 01 1996]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.