Callback
soundFrame:Callback(state, result)
Invoked when an operation on the sound frame completes.
DISCUSSION
- 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.
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.![]()
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help