# US 2003/0208359 A1 · Method and apparatus for controlling buffering of audio stream

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2003/0208359 A1
- Document ID: US20030208359A1
- Status: Published application
- Kind: A1
- Application number: 10/337,278
- Filed: 2003-01-07
- Published: 2003-11-06
- Earliest claimed: 2002-05-04
- Assignees: Samsung Electronics Co., Ltd.
- Inventors: Sang-Uk Kang; Dae-Gyu Bae
- Web page: https://patentgrep.com/patent/US20030208359A1

## CPC

- H04N 21/23406: {involving management of server-side video buffer}
- H04N 21/44004: {involving video buffer management, e.g. video decoder buffer or video display buffer}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method and apparatus for controlling buffering of an audio stream so that audio can be played continuously without stoppage using a minimum amount of buffering are provided. The method for controlling buffering of data includes (a) determining a buffering period of compressed audio data on the basis of a time stamp which corresponds to a packet division unit, by considering the state of a network, (b) calculating a time period where the compressed audio data is to be stored in a buffer, on the basis of the buffering period that is determined in step (a), (c) buffering the inputted compressed audio data in a decoding buffer for the time period that is calculated in step (b), and (d) decoding the compressed audio data that is stored in the decoding buffer when the time period passes in step (c) and storing the decoded audio data in a composition buffer for synchronization with video data.

## Claims

### Claim 1

A method for controlling buffering of data, the method comprising:
(a) determining a buffering period of compressed audio data on the basis of a time stamp corresponding to a packet division unit by considering a state of a network;
(b) calculating a time period for which the compressed audio data is to be stored in a decoding buffer, on the basis of the buffering period;
(c) storing the compressed audio data in the decoding buffer for the time period; and
(d) decoding the compressed audio data stored in the decoding buffer when the time period passes and storing the decoded audio data in a composition buffer for synchronization with video data.

### Claim 2 (depends on 1)

The method of claim 1, wherein the time period for which the compressed audio data is to be stored in the decoding buffer is obtained by subtracting both a decoding time of the decoder and a delay time of a sound card buffer from the buffering period.

### Claim 3 (depends on 1)

The method of claim 1, wherein in step (d), the decoded audio data is stored in the composition buffer for a storage time corresponding to the sum of a time corresponding to the time stamp and a time corresponding to ((a maximum decoding time of the decoder−an actual decoding time of the decoder)+a delay time of a sound card buffer).

### Claim 4 (depends on 1)

The method of claim 1, further comprising (e) storing in a sound card buffer the decoded audio data stored in the decomposition buffer by referring to the time stamp.

### Claim 5 (depends on 4)

The method of claim 4, wherein the decoded audio data is stored in the sound card buffer for a time corresponding a difference between the time stamp and a delay time of the sound card buffer.

### Claim 6

An apparatus for controlling buffering of data, the apparatus comprising:
a parsing unit which receives an audio stream from a network and separates the received audio stream into a header and compressed audio data;
a decoding buffer which stores the compressed audio data separated by the parsing unit;
a decoder which decodes the audio data stored in the decoding buffer;
a composition buffer which stores the audio data decoded by the decoder;
a sound card buffer which stores the audio data stored in the composition buffer in order to play the audio data; and
a controller which calculates a time period for which the compressed audio data is to be stored in the decoding buffer based on a buffering period determined on the basis of a time stamp in the header information, wherein the controller controls the decoding buffer, the decoder and the composition buffer so that the decoding buffer stores the audio data for the time period, the decoder decodes the audio data stored in the decoding buffer when the time period passes, and the composition buffer stores the audio data decoded by the decoder and outputs the audio data to the sound card buffer based on the time stamp in the header information separated by the parsing unit.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein the time period for which the compressed audio data is to be stored in the decoding buffer is obtained by subtracting both a decoding time of the decoder and a delay time of a sound card buffer from the buffering period.

### Claim 8 (depends on 6)

The apparatus of claim 6, wherein the decoded audio data is stored in the composition buffer for a storage time corresponding to the sum of a time corresponding to the time stamp and a time corresponding to ((a maximum decoding time of the decoder−an actual decoding time of the decoder)+a delay time of a sound card buffer).

### Claim 9 (depends on 6)

The apparatus of claim 6, wherein the decoded audio data is stored in the sound card buffer for a time corresponding a difference between the time stamp and a delay time of the sound card buffer.
