Adjusting buffer sizes

Discuss Decibel, a high quality audio player.
User avatar
Site Admin
Posts: 2445
Joined: Fri Dec 23, 2005 7:45 am
Location: USA

Adjusting buffer sizes

Post by sbooth » Fri Jul 08, 2011 8:47 pm

Decibel contains hidden preferences to adjust the buffer sizes it uses.

There are two options that affect buffering: RingBufferCapacity and RingBufferWriteChunkSize.
  • RingBufferCapacity determines how many audio sample frames will be stored in the player's internal buffer
  • RingBufferWriteChunkSize determines the minimum read size from files.
The default value for RingBufferCapacity is 16384 and the default value for RingBufferWriteChunkSize is 2048.

You can set them on the command line in Terminal with the following commands:

Code: Select all

$ defaults write org.sbooth.Decibel RingBufferCapacity -int 32768
$ defaults write org.sbooth.Decibel RingBufferWriteChunkSize -int 4096
to double the values, for example.