How to determine if an 8-bit or unsigned WAV file is signed using Java and without javax.sound

I need to know if 8bit ".wav" is signed, signed or unsigned PCM, only when reading a file. I can not use javax.sound.sampled libraries. * Or AudioSystem.

+3
source share
2 answers

In a wav file, 8-bit samples are stored as unsigned bytes in the range from 0 to 255. 16-bit samples are stored as integers in a 2'-complement.

+7
source

8-bit (or lower) WAV files are always unsigned. 9 bits or higher are always signed:

i. - , . . , , i, .

, ( nBitsPerSample) 12 , . ( ) .

, PCM :

enter image description here

1.0 - IBM/Microsoft, 1991 .

+5

All Articles