ClearBitsTM Audio Demo

David Ching, DC Software
March 19, 2026 (originally written September 25, 2009)

Welcome

Since the late 1990's, PC's have been used as digital audio players. I noticed that various audio applications seemed to "sound different" even when playing the same file on the same hardware. Attempts to explain this did not always resonate with my peers, many of whom reported little or no audible difference.

This question has persisted over time. For example, Audirvana is often praised as one of today's best sounding audio applications, while Roon also deserves special mention. This raises a natural question: can playback software itself influence perceived sound, even when identical digital data is used?

ClearBits Thesis

This paper describes a Windows audio player which varies the sizes of the audio buffers passed to the system for playback. The sizes of the audio buffers are randomized using different algorithms.

The goal is to explore whether this variation can affect perceived sound quality. Depending on the nature of the randomness, listeners may perceive differences, although the magnitude and consistency of such effects can vary.

ClearBits randomizes the size of each audio buffer streamed to the device’s playback endpoint.

An audio player typically performs the following steps to play a music (e.g. .wav) file:

  1. Open the .wav file
  2. Read the format of the file (e.g. 44 KHz/Stereo/16-bit)
  3. Open the wave output device, setting the format to match #2
  4. Seek in the file to the start of the audio samples
  5. Read a fixed number of audio samples (bytes) from the file into a buffer
  6. Pass this buffer to Windows to be played, using e.g. the waveOutWrite() API
  7. Go to #5 and fill the next available buffer. Keep filling the buffers that Windows has finished playing, until the entire file has been played.

The process of using randomly sized audio buffers is called ClearBits. Hence, the enhancement is:

5. Read a random number of audio samples (bytes) from the file into a buffer

Depending on the nature of the randomness, listeners may perceive differences in sound quality, although the magnitude and consistency of such effects can vary.

ClearBits Music Player

The ClearBits Music Player (ClearBits.exe) demonstrates the ClearBits effect on Windows 10/11 by playing a list of WAVE / MP3 files while allowing the Audio Buffer Size algorithm to be changed on-the-fly.

Click to download ClearBits.exe (4.3 MB)

ClearBits Music Player screenshot

 Alter the algorithm used to determine buffer size. Choices include:

When the combobox is changed, you should hear any perceptual differences --if present-- immediately.

NOTE: Due to some versions of Windows’ tendency to glitch when presented with small buffers, all buffers are at least big enough to store 2 seconds of music samples, at the current bitrate. The buffer size is then increased by the random amount.

 Displays the current format of the wave out device

 VCR Controls: Previous File, Play or Pause current file, Next File

Additional Seek Controls:

 Searches for files containing the specified string

 Display file paths that can be played

 Load or Clear the file paths in the list.

 Check to play a random file after the current file has finished. Uncheck to play the next file in the list.

 Drag window corner to resize

Suggested Use

Rip a few of your best-known songs from CD to .wav files (but ClearBits can also be used with lossy compression formats).

Drag and drop them from Explorer into the ClearBits Music Player.

Click the Play button, listen for a few minutes to get initiated, and then alter the Audio Buffer Size combobox to pick another randomness algorithm. Any perceptual differences --if present-- may be heard immediately.

Click in the list to select a new song, and don’t forget the F5-F8 keys to seek within the current song.

Listen for any perceived differences, and if present, consider whether they are noticeable and consistent. You may also compare different randomness algorithms and note any differences in character or magnitude.

Boost the volume to 100% so that Windows does not reduce resolution with the digital volume control.

The temptation is to play test simple tones like sine wave, but more complex music may make any differences easier to perceive.

How does it sound?

Listener reports have been mixed. Some listeners report subtle differences, while others do not perceive a change. Those who do sometimes describe changes similar in character to different dither or noise-shaping algorithms, both in type and magnitude:

This is plausible since both use randomness to achieve their goals. ClearBits uses randomness to alter buffer size, and dither uses randomness to distribute truncation errors.

 

The ordinary people who’ve tried this don’t hear a difference, but 2 other audiophiles and a sound card engineer could.
...I think the subtlety of difference and improvement, and the variability of difference from machine and sound card to machine and sound card, is going to be a large impediment to delivering consistent value....
I’m afraid I’m not hearing a difference.
I have tried the app. with mp3 files on my hard disc. There is some improvement, but it does not overcome the essential blandness that is a characteristic of mp3 files....

 

Hypothesis

One possible explanation is that varying buffer sizes alters processing timing in a way that reduces cyclic timings at the hardware level, which could in turn influence timing-related effects such as jitter in the output stream. This hypothesis is speculative and has not been independently verified.

Other potential reasons for an audible difference

Random-sized buffers demonstrate that the audio player affects the sound, but they're not the only factors. Here is a sampling of what others have reported.

Do streaming services have a “sound”? | by Koscso Ferenc | Medium, 3/10/2024

 

 

Gordon Keith, 6/12/2014


David Ching, 11/20/2009

I notice the perceived audio quality also changes when there is heavy system load:

  1. there is a file copy occurring,
  2. there are many processes running
  3. the process and thread priorities of the music player are altered in task manager.
ClearBits makes a similar or larger difference as these.

Next