Recording and playing scheduling method of double-spiral structure
The invention discloses a recording and playing scheduling method of a double-spiral structure, and belongs to the technical field of multimedia communication. The method comprises the following steps: step 1, preparing N frame buffers for recording and playing respectively; 2, adding the N recordin...
Gespeichert in:
Hauptverfasser: | , , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a recording and playing scheduling method of a double-spiral structure, and belongs to the technical field of multimedia communication. The method comprises the following steps: step 1, preparing N frame buffers for recording and playing respectively; 2, adding the N recording caches into a sound card, and starting recording; writing the N playback caches into a sound card one by one; 3, writing a playback cache into the sound card in a callback function of recording; step 4, adding a recording cache in a playback callback function; and step 5, ending recording and playing. According to the method, recording callback + writing into the sound card cache is taken as recording frame time consumption, and playback callback + adding into the recording cache is taken as playback frame time consumption, so that the effects of neutralization and averaging are achieved, and the duration jitter can be reduced and dynamically tends to be consistent; under the working principle of a preemptive mod |
---|