Class: Rex::Proto::IAX2::Codecs::ALaw
- Defined in:
- lib/rex/proto/iax2/codecs/a_law.rb
Constant Summary
Constants inherited from G711
G711::LOOKUP_ALAW2LIN16, G711::LOOKUP_LIN2ALAW, G711::LOOKUP_LIN2ULAW, G711::LOOKUP_ULAW2LIN16
Class Method Summary collapse
Class Method Details
.decode(buff) ⇒ Object
8 9 10 |
# File 'lib/rex/proto/iax2/codecs/a_law.rb', line 8 def self.decode(buff) buff.unpack("C*").map{ |x| LOOKUP_ALAW2LIN16[x] }.pack('v*') end |