Title Banner

Previous Book Contents Book Index Next

Newton Developer Technical Information: Newton Programmer's Guide: 2.1 OS Addendum /
Chapter 7 - Sound / Sound Reference
Data Structures


soundRecorder Object

The *soundRecorder object is a child view of the root view. It is a built-in user interface object that lets the user control recording and playback.

After opening the recorder slip with either *OpenPlay or *OpenRecord, you can change several slots in the sound recorder base view to override values in the associated sound channel and sound frames created by it. The slots you can change are as follows:

Slot descriptions

fSoundFrameSlots
A frame that contains any slots that you want to be copied to the sound frames for recording. This frame overrides the default values of the slots in any sound frames created by *soundRecorder.
fInputGain
Sets the inputGain slot in the sound channel.
fInputDevice
Sets the inputDevice slot in the sound channel.
fOutputDevice
Sets the outputDevice slot in the sound channel.
fCallback
A function that is called when the user taps the close box to close the recorder. It is passed a single argument, the array of sound frames that were allocated as a result of recording. Note that this slot is set by the *OpenRecord method (it's the argument you passed to *OpenRecord), so if you open the recorder by calling *OpenRecord, then you don't need to also set this slot.
You can also send the following messages to the *soundRecorder object.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
26 APR 1997



Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help