Squeak Class Documentation category index | class index  
 
GSMCodec
  category: Sound-Synthesis
  superclass: SoundCodec
  subclasses:

No comment. Sorry.

instance methods
  primitives
  primDecode:frames:from:at:into:at:
primEncode:frames:from:at:into:at:
primNewState

  subclass responsibilities
  bytesPerEncodedFrame
decodeFrames:from:at:into:at:
encodeFrames:from:at:into:at:
reset
samplesPerFrame

class methods
  instance creation
  new

instance methods
  primitives top  
 

primDecode:frames:from:at:into:at:


 

primEncode:frames:from:at:into:at:


 

primNewState


  subclass responsibilities top  
 

bytesPerEncodedFrame

Answer the number of bytes required to hold one frame of compressed sound data. Answer zero if this codec produces encoded frames of variable size.


 

decodeFrames:from:at:into:at:

Decode the given number of monophonic frames starting at the given index in the given ByteArray of compressed sound data and storing the decoded samples into the given SoundBuffer starting at the given destination index. Answer a pair containing the number of bytes of compressed data consumed and the number of decompressed samples produced.


 

encodeFrames:from:at:into:at:

Encode the given number of frames starting at the given index in the given monophonic SoundBuffer and storing the encoded sound data into the given ByteArray starting at the given destination index. Encode only as many complete frames as will fit into the destination. Answer a pair containing the number of samples consumed and the number of bytes of compressed data produced.


 

reset

Reset my encoding/decoding state to prepare to encode or decode a new sound stream.


 

samplesPerFrame

Answer the number of sound samples per compression frame.


class methods
  instance creation top  
 

new

Answer a new instance of the receiver (which is a class) with no indexable variables. Fail if the class is indexable.