module RemiAudio::Codecs::G117

Extended Modules

Defined in:

remiaudio/codecs/g711.cr

Instance Method Summary

Instance Method Detail

def aLawToInt16(aval : UInt8) : Int16 #

Converts an a-Law sample to a signed 16-bit integer sample.


[View source]
def aLawToInt16(samples : Array(Int16)) : Array(UInt8) #

Converts an array of ma-Law samples into an array of 16-bit signed integer samples.


[View source]
def int16ToALaw(sample : Int16) : UInt8 #

Converts a 16-bit signed integer sample into a a-Law sample.


[View source]
def int16ToMuLaw(sample : Int16) : UInt8 #

Converts a 16-bit signed integer sample into a mu-Law sample.


[View source]
def int16ToMuLaw(samples : Array(Int16)) : Array(UInt8) #

Converts an array of 16-bit signed integer samples into an array of a-Law samples.


[View source]
def muLawToInt16(uval : UInt8) : Int16 #

Converts a mu-Law sample to a signed 16-bit integer sample.


[View source]
def muLawToInt16(samples : Array(Int16)) : Array(UInt8) #

Converts an array of mu-Law samples into an array of 16-bit signed integer samples.


[View source]