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:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=KNtnEht4Q9ulOPnsrUrvbIp/3tzrOChyQE0TTZQSmmg=; b=QrAStGPRQI5HetyT/a2WY3X0f5KIUUW19vEzVpDdrF49GUoWE5X57/ohyjbUV3imAZ qEQ6t346bUi9SdyWIWHH0julM6PZ6l281GXUT6/KXBMMHg2cmz26LGQMVIXezRZpkSXt SIXcK6CC26fanP+6k96mncB/YyOgxc61z2vyhVaemQKj85YhmhLHsaM3yUhdTTpDboOf ALjM9WHzuxBC4hvWB8KfLQqIvromn+U0d9CqK6ldKKmvxXSCRdiVDFUNL4fajPo7GBAs zg+QvspKbnDC9zHoqUOzOi6uNFJI2Rkb4FNf4UNh3a4v6cvXOd3mzCN9dewlPpF6mgWC t9wA== MIME-Version: 1.0 X-Received: by 10.52.66.104 with SMTP id e8mr16889518vdt.5.1373483430651; Wed, 10 Jul 2013 12:10:30 -0700 (PDT) In-Reply-To: References: Date: Wed, 10 Jul 2013 15:10:30 -0400 Message-ID: Subject: Re: [geda-user] Help storing a 7KB wave file into memory From: Rob Butts To: geda-user AT delorie DOT com Content-Type: multipart/alternative; boundary=20cf307abd8ffd65c304e12d07e5 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 --20cf307abd8ffd65c304e12d07e5 Content-Type: text/plain; charset=ISO-8859-1 Once I get it I want to store it in memory on a board and then DtoA it to a speaker when needed. On Wed, Jul 10, 2013 at 2:27 PM, Abhijit Kshirsagar wrote: > Yes you can. Tools like octave have the ability to read and write wave > files. Alternatively, you can read the file in binary mode using c or > perhaps python. > > The wave format is pretty simple- the first few bytes have info about > sampling rate, channels, etc, and then is the stream of data itself. > The exact details are on numerous websites... > > What do you want to do with the data once you get it? > > -Abhijit > > -- > ~Abhijit > --20cf307abd8ffd65c304e12d07e5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Once I get it I want to store it in memory on a board and = then DtoA it to a speaker when needed.

=
On Wed, Jul 10, 2013 at 2:27 PM, Abhijit Ksh= irsagar <abhijit86k AT gmail DOT com> wrote:
Yes you can. Tools like octave have the abil= ity to read and write wave
files. Alternatively, you can read the file in binary mode using c or
perhaps python.

The wave format is pretty simple- the first few bytes have info about
sampling rate, channels, etc, and then is the stream of data itself.
The exact details are on numerous websites...

What do you want to do with the data once you get it?

-Abhijit

--
~Abhijit

--20cf307abd8ffd65c304e12d07e5--