www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2014/03/29/10:37:20

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:date:message-id:subject:from:to:content-type;
bh=4ptV4eH7ha2FlCou+5zoYRNjED91Nna1xRqL1iEdPUY=;
b=0dcAkCQxRKsficy9blKYHomfz2nMty+u+dRCcb53eZtcy+LUeL1HDy+1sNpCVCiQ67
n0SYYTSmfqMtNKS5spKLQxTrwroWHe/TFZVInX1G4nwhu15Q/2OGOZ38tOE3grRkKTsm
VR74Kf4E3BaWbMaZhCigKMHMGdm/HPYmpGcg6mkFxwMqmOxqRYyMUpyENIdyI2P4GTH3
rs1OZO/LN5Nw8wA/RdqTGza9rgbQvWeYnUZ14F0JCnPW9Ds5l2xuPcZKhFdsw9dYu0L+
xYUlK/Hrt6DewgfknXFp0BG3PWkCbg3dJNx9Ht62DJJHNYssqG88rncUfTnvlurMHpQp
Q0YA==
MIME-Version: 1.0
X-Received: by 10.221.26.10 with SMTP id rk10mr12902723vcb.0.1396103774390;
Sat, 29 Mar 2014 07:36:14 -0700 (PDT)
Date: Sat, 29 Mar 2014 10:36:14 -0400
Message-ID: <CALSZ9gpoxnz9V-CbisKqmdwQyTtVf6G9nCe2Wt=4p4su-afFBQ@mail.gmail.com>
Subject: [geda-user] Wav to C array ~ 16 bit to 12 bit
From: Rob Butts <r DOT butts2 AT gmail DOT com>
To: geda-user AT delorie DOT com
Reply-To: geda-user AT delorie DOT com

--001a11339ae48acee704f5bfbdd0
Content-Type: text/plain; charset=ISO-8859-1

I have a short 8kHz 16 bit wav pcm file that I converted to an 8kHz 16 bit
unsigned C numerical array.  I'm using a 12 bit dac so I need to convert
the 16 bit numerical array to a 12 bit numerical array.

Before I get started is this just a matter of shifting out the four most
significant bits of the binary 16 bit value?

--001a11339ae48acee704f5bfbdd0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I have a short 8kHz 16 bit=A0wav pcm file that I conv=
erted to an 8kHz 16 bit unsigned C numerical array.=A0 I&#39;m using a 12 b=
it dac so I need to convert the 16 bit numerical array to a 12 bit numerica=
l array.</div>
<div>=A0</div><div>Before I get started is this just a matter of shifting o=
ut the four most significant bits of the binary 16 bit value?</div></div>

--001a11339ae48acee704f5bfbdd0--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019