VirtualBox

Changeset 76991 in vbox for trunk


Ignore:
Timestamp:
Jan 25, 2019 1:56:48 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128405
Message:

Audio/DrvHostDSound: Always apply the backend configuration values on output stream creation; those could have been changed by DirectSound.

File:
1 edited

Legend:

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

    r76553 r76991  
    767767
    768768        const uint32_t cfBufSize = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, pStreamDS->cbBufSize);
    769         if (cfBufSize != pCfgAcq->Backend.cfBufferSize)
    770         {
    771             pCfgAcq->Backend.cfBufferSize = cfBufSize;
    772             pCfgAcq->Backend.cfPeriod     = cfBufSize / 4;
    773             pCfgAcq->Backend.cfPreBuf     = pCfgAcq->Backend.cfPeriod * 2;
    774         }
     769
     770        pCfgAcq->Backend.cfBufferSize = cfBufSize;
     771        pCfgAcq->Backend.cfPeriod     = cfBufSize / 4;
     772        pCfgAcq->Backend.cfPreBuf     = pCfgAcq->Backend.cfPeriod * 2;
    775773
    776774    } while (0);
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