
CHAPTER 14
Sound
Summary of Sound 14-11
Summary of Sound 14
Data Structures 14
SndFrame Structure 14
mySndFrame := {
_proto: mySndFrame,
sndFrameType : symbol, // specifies format
samples : frame, // contains sampled binary data
samplingRate : integer /floating point, // specifies playback rate
compressionType : integer, // indicates no compression
dataType : integer, // indicates size of sample in bits
start : integer, // index of first sample to play
count : integer, // number of samples to play
loops : integer, // time to repeat sound
Callback : function, // indicates the state of the sound
SndResult Structure 14
mySndResult := {
_proto: mySndResult,
sound : integer, // reference to soundFrame that was paused
index : function, // index of sample that was paused/stopped
Protos 14
protoSoundChannel 14
aProtoSoundChannel := {
_proto: protoSoundChannel,
Open : function, // opens sound channel
Close : function, // closes sound channel
Schedule : function, // queues sound for play
Start : function, // starts sound channel
Stop : function, // stops sound channel
Pause : function, // pauses playback
IsPaused : function, // checks if sound channel is paused
IsActive : function, // checks if sound channel is active
...
}
Commentaires sur ces manuels