Audio represented as numerical data. In common PCM audio, sample values describe the signal at regular time intervals; other digital formats may encode the audio differently and decode to samples for playback or processing.
What does digital audio mean?
Digital audio represents a sound signal as numerical values. In the common PCM representation, samples describe its amplitude at regularly spaced instants. Sample rate specifies how often those values occur, while sample format determines how they are represented, for example as fixed-point integers or floating-point numbers. Multiple synchronized sample streams can represent stereo or multichannel audio.
Recording an analog source involves filtering and analog-to-digital conversion. Playback uses digital-to-analog conversion and reconstruction filtering to produce a continuous electrical signal. The stored samples are not instructions for a loudspeaker to move in a staircase: reconstruction uses their relationship to recover the signal within the system’s bandwidth. Ideal sampling theory explains why a band-limited waveform can be represented by discrete samples without requiring a sample at every possible instant.
Practical fidelity depends on conversion, filtering, noise, processing and level management as well as the sample rate and bit depth. Digital data can be copied exactly, but converting formats or applying processing may change it. Lossless coding preserves the encoded sample information, while lossy coding removes information according to a perceptual model.
Sampling and Uncompressed PCM Data Rate
Ts=fs1,fs>2fmax
R=fsNC
Ts is the sampling interval in seconds and fs>0 is the sample rate in samples per second. fmax≥0 is the highest signal frequency in hertz; fs>2fmax is the ideal strict sampling condition for a baseband signal containing no frequencies above that limit. Practical anti-alias filters need a transition band. R is the raw packed fixed-point PCM data rate in bits per second; N is a positive integer number of bits per sample per channel and C is a positive integer channel count. Both formulas assume uniform sampling, and the data-rate calculation assumes equal sample rates and word lengths across channels. Headers, padding, metadata, compression and line-coding overhead are excluded.
Examples related to digital audio
At 48 kHz, successive samples are about 20.83 microseconds apart.
Stereo 24-bit PCM at 48 kHz carries 2,304,000 bits per second before container overhead, or 288,000 bytes per second when the samples are packed into three bytes each.
Common confusions and distinctions
Sample rate and bit depth describe different dimensions and do not by themselves guarantee recording quality. MIDI normally describes performance events rather than storing the resulting waveform. A WAV file is a container, not proof that its contents have never undergone lossy processing.