Sha256: e61552ae4139e39bc8c70e5978dc46052cabac646e1f855d37f9887333c8855d

Contents?: true

Size: 210 Bytes

Versions: 15

Compression:

Stored size: 210 Bytes

Contents

# -*- coding: binary -*-
module Rex
module Proto
module IAX2
module Codecs
class ALaw < G711

  def self.decode(buff)
    buff.unpack("C*").map{ |x| LOOKUP_ALAW2LIN16[x] }.pack('v*')
  end

end
end
end
end
end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
rex-2.0.13 lib/rex/proto/iax2/codecs/alaw.rb
rex-2.0.12 lib/rex/proto/iax2/codecs/alaw.rb
rex-2.0.11 lib/rex/proto/iax2/codecs/alaw.rb
rex-2.0.10 lib/rex/proto/iax2/codecs/alaw.rb
rex-2.0.9 lib/rex/proto/iax2/codecs/alaw.rb
rex-2.0.8 lib/rex/proto/iax2/codecs/alaw.rb
rex-2.0.7 lib/rex/proto/iax2/codecs/alaw.rb
rex-2.0.5 lib/rex/proto/iax2/codecs/alaw.rb
rex-2.0.4 lib/rex/proto/iax2/codecs/alaw.rb
dstruct-0.0.1 lib/rex/proto/iax2/codecs/alaw.rb
rex-2.0.3 lib/rex/proto/iax2/codecs/alaw.rb
librex-0.0.999 lib/rex/proto/iax2/codecs/alaw.rb
rex-2.0.2 lib/rex/proto/iax2/codecs/alaw.rb
librex-0.0.71 lib/rex/proto/iax2/codecs/alaw.rb
librex-0.0.70 lib/rex/proto/iax2/codecs/alaw.rb