| 408 | } |
| 409 | |
| 410 | void 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 | |
| 423 | void CVideo::NextAudioFrame(ISoundMixFunc Mix) |
| 424 | { |