VirtualBox

Changeset 73393 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jul 30, 2018 12:10:55 PM (6 years ago)
Author:
vboxsync
Message:

Audio/DrvHostDebugAudio: Backend doesn't need any special configuration, so just apply and accept the requested one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvHostDebugAudio.cpp

    r73383 r73393  
    117117                               PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)
    118118{
    119     RT_NOREF(pDrv, pStreamDbg, pCfgReq);
    120 
    121     if (pCfgAcq)
    122     {
    123         pCfgAcq->Backend.cfPeriod     = DrvAudioHlpMsToFrames(1000 /* ms */, &pCfgReq->Props);
    124         pCfgAcq->Backend.cfBufferSize = pCfgAcq->Backend.cfPeriod * 2; /* Use "double buffering". */
    125     }
     119    RT_NOREF(pDrv, pStreamDbg, pCfgReq, pCfgAcq);
    126120
    127121    return VINF_SUCCESS;
     
    132126                                PPDMAUDIOSTREAMCFG pCfgReq, PPDMAUDIOSTREAMCFG pCfgAcq)
    133127{
    134     RT_NOREF(pDrv);
     128    RT_NOREF(pDrv, pCfgAcq);
    135129
    136130    char szTemp[RTPATH_MAX];
     
    158152    else
    159153        LogRel(("DebugAudio: Unable to retrieve temp dir: %Rrc\n", rc));
    160 
    161     if (RT_SUCCESS(rc))
    162     {
    163         if (pCfgAcq)
    164         {
    165             pCfgAcq->Backend.cfPeriod     = DrvAudioHlpMsToFrames(50 /* ms */, &pCfgReq->Props);
    166             pCfgAcq->Backend.cfBufferSize = pCfgAcq->Backend.cfPeriod * 2; /* Use "double buffering". */
    167         }
    168     }
    169154
    170155    return rc;
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