VirtualBox

Changeset 74841 in vbox for trunk


Ignore:
Timestamp:
Oct 15, 2018 10:01:48 AM (6 years ago)
Author:
vboxsync
Message:

VideoRec/Audio: Also explicitly set the buffer and pre-buffering sizes for output streams.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp

    r73838 r74841  
    524524
    525525            /* Every Opus frame marks a period for now. Optimize this later. */
    526             pCfgAcq->Backend.cfPeriod  = DrvAudioHlpMilliToFrames(pSink->Codec.Opus.msFrame, &pCfgAcq->Props); /** @todo Make this configurable. */
     526            pCfgAcq->Backend.cfPeriod     = DrvAudioHlpMilliToFrames(pSink->Codec.Opus.msFrame, &pCfgAcq->Props);
     527            pCfgAcq->Backend.cfBufferSize = DrvAudioHlpMilliToFrames(100 /* ms */, &pCfgAcq->Props); /** @todo Make this configurable. */
     528            pCfgAcq->Backend.cfPreBuf     = pCfgAcq->Backend.cfPeriod * 2;
    527529        }
    528530    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette