Is this a bug or I am doing something wrong?

Help on how to use HxD.
Post Reply
HyperUniverse
Posts: 1
Joined: 08 Nov 2021 13:16

Is this a bug or I am doing something wrong?

Post by HyperUniverse »

Hi,

I have just installed this program to extract the hex values out of a very short (3 seconds) mp3 file

Although I can see the mp3 file is 16 bits, when I export it only exports the first 12-bits out of each line of code.

Is this a bug or I am doing something wrong?
error1.jpg
error1.jpg (395.71 KiB) Viewed 192 times
error2.jpg
error2.jpg (396.25 KiB) Viewed 192 times

Code: Select all

/* H:\aftrnn.mp3 (07/07/2020 13:57:32)
   StartOffset(h): 00000000, EndOffset(h): 0000813F, Length(h): 00008140 */

unsigned char rawData[33088] = {
	0x49, 0x44, 0x33, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3D, 0x54, 0x49,
	0x54, 0x32, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x49, 0x6C, 0x6C,
	0x20, 0x68, 0x65, 0x61, 0x6C, 0x74, 0x68, 0x20, 0x61, 0x6C, 0x65, 0x72,
	0x74, 0x20, 0x54, 0x58, 0x58, 0x58, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00,
	0x00, 0x53, 0x6F, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x00, 0x4C, 0x61,
	0x76, 0x66, 0x35, 0x38, 0x2E, 0x32, 0x39, 0x2E, 0x31, 0x30, 0x30, 0xFF,
	0xFB, 0x90, 0xC4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x49, 0x6E, 0x66, 0x6F,
	0x00, 0x00, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x4E, 0x00, 0x00, 0x80, 0xF9,
	0x00, 0x03, 0x06, 0x09, 0x0D, 0x0D, 0x10, 0x13, 0x16, 0x1A, 0x1A, 0x1D,
	0x20, 0x24, 0x24, 0x27, 0x2A, 0x2D, 0x31, 0x31, 0x34, 0x37, 0x3B, 0x3B,
	0x3E, 0x41, 0x44, 0x48, 0x48, 0x4B, 0x4E, 0x52, 0x52, 0x55, 0x58, 0x5B,
	0x5F, 0x5F, 0x62, 0x65, 0x69, 0x69, 0x6C, 0x6F, 0x72, 0x76, 0x76, 0x79,
	0x7C, 0x80, 0x83, 0x83, 0x86, 0x89, 0x8D, 0x8D, 0x90, 0x93, 0x96, 0x9A,
	0x9A, 0x9D, 0xA0, 0xA4, 0xA4, 0xA7, 0xAA, 0xAD, 0xB1, 0xB1, 0xB4, 0xB7,
	0xBB, 0xBB, 0xBE, 0xC1, 0xC4, 0xC8, 0xC8, 0xCB, 0xCE, 0xD2, 0xD2, 0xD5,
	0xD8, 0xDB, 0xDF, 0xDF, 0xE2, 0xE5, 0xE9, 0xE9, 0xEC, 0xEF, 0xF2, 0xF6,
	0xF6, 0xF9, 0xFC, 0xFF, 0x00, 0x00, 0x00, 0x39, 0x4C, 0x41, 0x4D, 0x45,
	. . . . 
	too long to paste everything here
};
How do I get the full 16-bits out of it?


Thanks,
Regards.
Maël
Site Admin
Posts: 1375
Joined: 12 Mar 2005 14:15

Re: Is this a bug or I am doing something wrong?

Post by Maël »

HyperUniverse wrote: 08 Nov 2021 13:31 Although I can see the mp3 file is 16 bits, when I export it only exports the first 12-bits out of each line of code.
Hi,
I am not sure what you base your assumptions on. 16 bits per sample would be what the decoded data stream is, since MP3 is compressed, you cannot just browse through the file like in a WAVE file and expect to see raw samples.

What is 12 bits? Since each line in your HxD config has 16 bytes, that would be 16*8 bits = 128 bits per line.

If the export itself has an error, I would need to see a screenshot that shows the same data region as the exported C array, but the c-array shows the start and the screenshot the end of the file.

Ideally, you would append the MP3 so I can see if the export works right.
Post Reply