MCPcopy Create free account
hub / github.com/ddnet/ddnet / NextAudioFrameTimeline

Method NextAudioFrameTimeline

src/engine/client/video.cpp:410–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410void CVideo::NextAudioFrameTimeline(ISoundMixFunc Mix)
411{
412 if(m_Recording && m_HasAudio)
413 {
414 double SamplesPerFrame = (double)m_AudioStream.m_pCodecContext->sample_rate / m_FPS;
415 while(m_AudioStream.m_SamplesFrameCount >= m_AudioStream.m_SamplesCount)
416 {
417 NextAudioFrame(Mix);
418 }
419 m_AudioStream.m_SamplesFrameCount += SamplesPerFrame;
420 }
421}
422
423void CVideo::NextAudioFrame(ISoundMixFunc Mix)
424{

Callers 1

UpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected