From: Rob Lee Date: 2006-10-25T04:01:38+09:00 Subject: Re: Bitstuct and binary files > > Then probably your data is in big endian order--I should have grokked > that from your code. Try this: > > class Audio < BitStruct > signed :aheader, 8 > unsigned :alength, 3*8 > signed :afooter, 8 > end Excellent - thank you. It all works - if you're interested I'm working on a Ruby proxy for the Nabaztag (wifi bunny rabbit) and I'm trying to extend some of it's audio capabilities :) -- Posted via http://www.ruby-forum.com/.