Continuous Sound Playback Buffer Management

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for continuous playback of sound files result in poor smooth transition and simulation performance, particularly when playback intervals are short, leading to sound pause phenomena and suboptimal natural sound effects.

Innovation Solution

A method and apparatus for continuous playback of sound files that involve receiving a playback instruction, determining a time point for ending playback, searching for a corresponding playback time value, and starting to play sound data after this value, ensuring seamless continuation and enhancing natural sound simulation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

If a sound file is played repeatedly using existing common method, then implementation is simple, but sound pause phenomenon occurs when time interval is less than 100 milliseconds

Engineering Contradiction:
Improveimplementation simplicityVSAvoidcontinuous playback smoothness
Core Design Contradiction:
Ease of manufactureVSReliability

Solution Approach 1:

The system pre-loads sound files into a buffer before they are actually needed for playback. When a playback request arrives, the sound data is already prepared and waiting in the buffer, eliminating the pause that would normally occur during file loading. This preliminary preparation resolves the contradiction by maintaining simple implementation while achieving continuous smooth playback.

Inventive Principle:
Principle #10Preliminary action

2Productivity

If hosting and automatic continuous playback method is used, then sound pause phenomenon is avoided and playback efficiency is high, but smooth transition performance of sound signal is poor

Engineering Contradiction:
Improveplayback efficiencyVSAvoidsound signal transition smoothness
Core Design Contradiction:
ProductivityVSManufacturing precision

Solution Approach 1:

The system applies different processing strategies to different parts of the playback process. For the majority of playback, efficient buffer-based continuous playback is used. However, at critical transition points (when playback ends and needs to loop), the system applies special handling by calculating the appropriate buffer position to maintain smooth transitions. This localized quality adjustment resolves the contradiction between efficiency and transition smoothness.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The system dynamically adjusts playback parameters, specifically the buffer position and playback timing, to achieve both high efficiency and smooth transitions. By changing the buffer read position calculation based on the elapsed playback time and sound file duration, the system maintains continuous efficient playback while ensuring smooth loop transitions without abrupt cuts.

Inventive Principle:
Principle #35Parameter changes

3Productivity

If sound file is played continuously with short time intervals, then playback frequency is high, but calling sound file consumes time causing sound pause

Engineering Contradiction:
Improveplayback frequencyVSAvoidsound file calling time
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The system performs preliminary loading of sound files into an internal buffer before playback requests arrive. This pre-loading eliminates the time-consuming file calling operation during actual playback, allowing high-frequency repeated playback without the time loss that would normally occur during file loading operations.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The buffer-based playback system maintains continuous playback action without interruption. Once sound data is loaded into the buffer, the playback operation continues seamlessly without stopping to reload files, even when playback requests come at high frequency with short intervals. This continuity eliminates the time losses associated with repeated file calling.

Inventive Principle:
Principle #20Continuity of useful action

Data Source

PatentUS10324681B2Method, apparatus and medium for continuous playback of sound file
Publication Date: 2019.06.18 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • US10324681B2 patent drawing
  • US10324681B2 patent drawing
  • US10324681B2 patent drawing

AI summary

A method and an apparatus for continuous playback of a sound file are described. The method includes: receiving a first playback instruction, where the first playback instruction is used for playing continuously a sample sound file; obtaining, according to the first playback instruction, a time point for ending continuous playback corresponding to the first playback instruction; searching, according to the time point for ending the continuous playback, for a playback time value of the sample sound file corresponding to the time point; and starting, at the time point for ending the continuous playback, to play sound data of the sample sound file after the playback time value.