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: Subject: [geda-user] Wav to C array ~ 16 bit to 12 bit From: Rob Butts To: geda-user AT delorie DOT com Content-Type: multipart/alternative; boundary=001a11339ae48acee704f5bfbdd0 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
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'm using a 12 b= it dac so I need to convert the 16 bit numerical array to a 12 bit numerica= l array.
=A0
Before I get started is this just a matter of shifting o= ut the four most significant bits of the binary 16 bit value?
--001a11339ae48acee704f5bfbdd0--