ArrayBuffer wrapper of pcm16ToMuLaw: little-endian PCM16 bytes → μ-law bytes. The input
matches the PCM16 frame type the ITelephonyCallSdk seam carries (sendAudioFrame).
Parameters
pcm: ArrayBuffer
An ArrayBuffer of little-endian signed-16-bit PCM (2 bytes per sample; a trailing odd
byte is ignored).
Returns ArrayBuffer
An ArrayBuffer of μ-law bytes (one byte per sample).
ArrayBufferwrapper of pcm16ToMuLaw: little-endian PCM16 bytes → μ-law bytes. The input matches the PCM16 frame type the ITelephonyCallSdk seam carries (sendAudioFrame).