| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
| X-Recipient: | geda-user AT delorie DOT com |
| X-Sender: | qpaz |
| From: | al davis <ad252 AT freeelectron DOT net> |
| To: | geda-user AT delorie DOT com |
| Subject: | Re: [geda-user] Wav to C array ~ 16 bit to 12 bit |
| Date: | Sat, 29 Mar 2014 16:03:19 -0400 |
| User-Agent: | KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) |
| References: | <CALSZ9gpoxnz9V-CbisKqmdwQyTtVf6G9nCe2Wt=4p4su-afFBQ AT mail DOT gmail DOT com> <5336E080 DOT 5080600 AT buffalo DOT edu> <533721CC DOT 9000408 AT buffalo DOT edu> |
| In-Reply-To: | <533721CC.9000408@buffalo.edu> |
| MIME-Version: | 1.0 |
| Message-Id: | <201403291603.19284.ad252@freeelectron.net> |
| Reply-To: | geda-user AT delorie DOT com |
On Saturday 29 March 2014, Stephen R. Besch wrote: > realizing that I had forgotten > about the sign bit it became clear that you cannot just toss > the high bits - you need to toss the low bits (essentially > an integer divide by 16). Usually if numbers are small enough, you can toss the high bits. "Usually" means the usual two's complement representation.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |