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
Protos / protoSoundFrame


GetSampleCount

soundFrame:GetSampleCount()

Returns the number of samples in the sound frame.

return value
An integer indicating the number of samples in the samples slot of the sound frame.

DISCUSSION

First, this method checks for the length slot in the sound frame. If that slot exists, its value is returned. If it does not exist or is nil, this method calculates the number of samples based on the size of the samples binary object divided by the number of bytes in each sample.

Note that the length slot in the sound frame is set only by the *SetRecordingLength method.


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