Patent ID: 7634227

Claim:
A method of managing audio data received by an accessory device from an electronic equipment over a local wireless interface link, comprising: buffering the audio data; feeding the buffered audio data to a decoder; detecting a decoder under run; after the detection of a decoder under run, restarting the feed of audio data to the decoder when an amount of buffered audio data is equal to or greater than a dynamically adjustable threshold amount of audio data; and flushing buffered audio data if an amount of buffered audio data is greater than the threshold value plus an offset value selected to minimize lag of the audio output with respect to the displayed video content; and wherein the dynamically adjustable threshold amount is initially set to a predetermined threshold value and is incremented after each detected decoder under run and is decremented when the local wireless interface link is determined to have improved based on elapsed time since a most recent decoder under run, the incrementing and decrementing to synchronize the output of audio corresponding to the audio data with video content displayed by the electronic equipment.