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 / Sound Frame


Callback

soundFrame:Callback(state, result)

Invoked when an operation on the sound frame completes.

state
The state of the sound channel when the callback was executed. Values are:

0 = kSoundCompleted

1 = kSoundAborted

2 = kSoundPaused

result
An integer error code, if present. For a listing of possible values, see "Sound Error Codes".

return value
Unused; you can return anything.

DISCUSSION

This method is invoked when a sound frame is finished playing or recording. During recording, this method is called when each sound frame is filled.

IMPORTANT
The *Callback method may be called slightly before the sound operation completes; if so, the operation will complete within 0.333 seconds. The method is called after the last buffer has been scheduled.

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