From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= Newsgroups: gmane.comp.audio.sox Subject: Re: 32 Bit Float Problem Date: Tue, 17 Jan 2017 17:02:53 +0000 Message-ID: References: <602e728c-f3fa-daf1-8dc9-076f2a33ee75@web.de> Reply-To: sox-users@lists.sourceforge.net NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1484672598 6230 195.159.176.226 (17 Jan 2017 17:03:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 17 Jan 2017 17:03:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cc: sox-users@lists.sourceforge.net To: Thomas Foerster Original-X-From: sox-users-bounces@lists.sourceforge.net Tue Jan 17 18:03:14 2017 Return-path: Envelope-to: gcas-sox-users@gmane.org X-ACL-Warn: In-Reply-To: (=?iso-8859-1?Q?=22M=E5n?= =?iso-8859-1?Q?s_Rullg=E5rd=22's?= message of "Tue, 17 Jan 2017 12:48:36 +0000") X-Headers-End: 1cTX9w-0003b9-2x X-BeenThere: sox-users@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: sox-users-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.comp.audio.sox:6474 Archived-At: Received: from lists.sourceforge.net ([216.34.181.88]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTXA4-0000tK-58 for gcas-sox-users@gmane.org; Tue, 17 Jan 2017 18:03:08 +0100 Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1cTX9y-00041x-O5; Tue, 17 Jan 2017 17:03:02 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1cTX9x-00041a-7q for sox-users@lists.sourceforge.net; Tue, 17 Jan 2017 17:03:01 +0000 Received: from unicorn.mansr.com ([81.2.72.234]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1cTX9w-0003b9-2x for sox-users@lists.sourceforge.net; Tue, 17 Jan 2017 17:03:01 +0000 Received: by unicorn.mansr.com (Postfix, from userid 51770) id 3545816310; Tue, 17 Jan 2017 17:02:53 +0000 (GMT) M=E5ns Rullg=E5rd writes: > Thomas Foerster writes: > >> Hi, >> >> I am a little bit confused about the following procedure >> (Windows). What is wrong? >> >> 1. Take a usual 2ch/16 Bit/44,1 kHz WAV-File (CD) >> 2. To get a 32 Bit FLOAT 88200 Hz File: >> sox input_16_44100.wav" -b 32 -e float output_88200_32F.wav rate -s -a = >> -v -L 88200 >> 3. sox output_88200_32F.wav output_88200_32F.raw >> >> The *.raw file has 58 bytes less-> the Wav-Float-Header has a size of >> 58 bytes. My own codecannot read this header in Audio format 3 (only >> wav-PCM and Extensible like 24 Bit Wav and 32 Bit Wav). I looked >> inside with Hex-Editor: >> >> -4 byte fact-chunk is beginning at byte 38 >> -4 byte data-chunk is beginning at byte 50 ("usually" before fact-chunk) >> >> I could not read the size of the raw-data-chunk (raw data >> length). Theses bytes are at the end of the header. Here(hex): 00 00 >> D8 0E -> = >> 55310 bytes, what is wrong! >> It should be (dec:) 249036800bytes! This would be 0E D8 00 00 -> most >> significant bit! >> >> Then I tried this: >> sox.exe -r 88200 -e float -b 24 -c 2output_88200_32F.raw out.wav >> Error! >> This would be working (but makes no sense...): >> sox.exe -r 88200 -e signed-integer -b 24 -c 2output_88200_32F.raw out.wav >> >> Any idea? > > Can you post a hex dump of the full header? The dump you sent (and please stay on the mailing list) looks fine. The data chunk size has the bytes 0x00 0x00 0xd8 0x0e, which read as *little endian* is 0xed80000 or 249036800 in decimal, just like you said it should be. All values in wav files are stored as little endian. -- = M=E5ns Rullg=E5rd ---------------------------------------------------------------------------= --- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot