size_t thinglen = strlen(thing);
The only adjustments I made after I got it working the first time were adding some boundaries to keep audio in sync. Video frames render instantly (we just swap the image), but audio needs to be buffered and scheduled ahead of time to avoid gaps. Getting them to stay in sync required clamping the audio scheduling buffer so it can't drift too far ahead of real time:
。关于这个话题,新收录的资料提供了深入分析
SelectWhat's included。业内人士推荐新收录的资料作为进阶阅读
Watch sessions update as they progress