X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Message-ID: <20140330124349.8644.qmail@stuge.se> Date: Sun, 30 Mar 2014 14:43:49 +0200 From: Peter Stuge To: geda-user AT delorie DOT com Subject: Re: [geda-user] Wav to C array ~ 16 bit to 12 bit Mail-Followup-To: geda-user AT delorie DOT com References: <5336E080 DOT 5080600 AT buffalo DOT edu> <533721CC DOT 9000408 AT buffalo DOT edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <533721CC.9000408@buffalo.edu> Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Stephen R. Besch wrote: > now I think that the best technique is to formally rescale the data If you're going to do this often then a fixed point integer division will get you very close to the same results with only a fraction of the computation needed. //Peter