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=nRkD+p6B8SzpM4PMo1nsInXyyajvptisZAfdDGgMmZs=; b=kHK4MupwE31NBsFMMySw+/goNoqs6T191+32aIglIOiMA1nC9eZiIjL4adGAtHH8PK 0eQfkaBJ69cXEUwL2izS+fQZobsEu8xW6uLoq6oLJcMBj6yd6R67U3JPhBMzd97MUjcg LjRXWpFzA8qUVw2UyQdXzxAUXucDMeol+PSHNX7tgK8vx1DbJqARP28k+XZpQWu8KQeO qIj2vucSfsqLKsce0MS74LjRr8UxyHYO4gh5QomKkGo8EYIN1v4P0SEYGVk04TOdHnhH NVWkHYJODAQvtfNy3gkc0EEzhiqwEfyUR8ErFQ9WFD1koQuj94qIN0DYw7uyMJrzikz1 cH0Q== MIME-Version: 1.0 X-Received: by 10.50.88.7 with SMTP id bc7mr36177730igb.37.1373483377506; Wed, 10 Jul 2013 12:09:37 -0700 (PDT) In-Reply-To: References: Date: Wed, 10 Jul 2013 11:09:37 -0800 Message-ID: Subject: Re: [geda-user] Help storing a 7KB wave file into memory From: Britton Kerin To: geda-user AT delorie DOT com Content-Type: text/plain; charset=ISO-8859-1 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 On Wed, Jul 10, 2013 at 10:03 AM, Rob Butts wrote: > I have an 8 KHz 8 bit pcm wave file that is a short sound in a .wav file on > my computer. > > I'd like to get the bytes that make up the 7 KB file which I've never done > before. Has anyone done this; read a wave file into memory from your hard > drive? The sox program will convert just about any sound format to any other (with some trouble for mp3 unless you have plugins or something), including raw sample bytes in your choice of endianness, sample order etc. Britton