Latency in a real-time electronic communication is dynamically managed. A
communication delay arising from a receiving data buffer is measured and
a latency adjustment necessary to adjust the size of the communication
delay to within a predetermined range and an optimal range for a size of
the communication delay are determined. Using these parameters, the
number of samples for an audio playback data block passing through the
receiving data buffer is modified.