Logic to Synchronize video and audio output: we use a buffer to store the audio and instead of delaying the frames with delay() we play audio. The bufferSize defines the audio buffer in bytes. The correctionMs is used to slow down or speed up the playback of the video to prevent any audio buffer underflows.
More...
#include <Video.h>
Logic to Synchronize video and audio output: we use a buffer to store the audio and instead of delaying the frames with delay() we play audio. The bufferSize defines the audio buffer in bytes. The correctionMs is used to slow down or speed up the playback of the video to prevent any audio buffer underflows.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ VideoAudioBufferedSync()
◆ delayVideoFrame()
| void delayVideoFrame |
( |
int32_t |
microsecondsPerFrame, |
|
|
uint32_t |
time_used_ms |
|
) |
| |
|
inlinevirtual |
Adds a delay after playing a frame to process with the correct frame rate. If the playing is too slow we return the mod to select the frames
Reimplemented from VideoAudioSync.
◆ writeAudio()
| void writeAudio |
( |
Print * |
out, |
|
|
uint8_t * |
data, |
|
|
size_t |
size |
|
) |
| |
|
inlinevirtual |
◆ correction_ms
◆ p_out
◆ ring_buffer
The documentation for this class was generated from the following file: