PCM
PCM
Posted Mar 17, 2022 19:40 UTC (Thu) by mbunkus (subscriber, #87248)In reply to: PCM by tialaramex
Parent article: Python finally offloads some batteries
* sampling frequency (also called sample rate)
* number of channels
* order of channels
* number of bits per sample (also called bit depth)
* signed or unsigned
* Endianess if bits per sample > 8
* PCM format (e.g. a-law, ยต-law, linear, etc.)
PCM used on CDs isn't the same as PCM used on Blu-rays, for example.
Not one of those parameters is really optional. Sure, you can specify all of them manually when decoding (or when using tools such as sox to convert from raw PCM data to one of the containerized variants), but the container's whole purpose is to relief us humans of the need to keep that extra information around somehow. That's what the WAV container does. As do other container formats, but WAV one of the simplest one to use (within certain limits), making it especially suitable for people new to programming or new to audio processing.