VirtualBox

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


Ignore:
Timestamp:
Aug 17, 2018 7:55:12 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124407
Message:

Audio/DrvHostDSound.cpp: Also do the playback data transfer in the driver's iteration function.

File:
1 edited

Legend:

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

    r73692 r73727  
    869869#endif
    870870
    871     /* Only transfer anything if we have enough data for a DirectSound stream's period *and* are not
    872      * in draining mode (already). */
    873     if (   !pStreamDS->Out.fDrain
    874         && cbToTransfer < DrvAudioHlpFramesToBytes(pStreamDS->Cfg.Backend.cfPeriod, &pStreamDS->Cfg.Props))
    875         return VINF_SUCCESS;
    876871
    877872    while (cbToTransfer)
     
    19051900    pStreamDS->Out.cbWritten += cbWrittenTotal;
    19061901
    1907     rc = dsoundPlayTransfer(pThis, pStreamDS);
    1908     AssertRC(rc);
    1909 
    19101902    if (RT_SUCCESS(rc))
    19111903    {
     
    23662358
    23672359    if (pStreamDS->Cfg.enmDir == PDMAUDIODIR_IN)
     2360    {
    23682361        return dsoundCaptureTransfer(pThis, pStreamDS);
     2362    }
     2363    else if (pStreamDS->Cfg.enmDir == PDMAUDIODIR_OUT)
     2364    {
     2365        return dsoundPlayTransfer(pThis, pStreamDS);
     2366    }
    23692367
    23702368    return VINF_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.

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