Back to TILs

C++ audio

Date: 2023-03-10Last modified: 2023-03-11

Table of contents


The selection of the sample rate was based primarily on the need to reproduce the audible frequency range of 20–20,000 Hz (20 kHz). The Nyquist–Shannon sampling theorem states that a sampling rate of more than twice the maximum frequency of the signal to be recorded is needed, resulting in a required rate of at least 40 kHz. The exact sampling rate of 44.1 kHz was inherited from PCM adaptors which was the most affordable way to transfer data from the recording studio to the CD manufacturer at the time the CD specification was being developed.


Possible output