VirtualBox

Changeset 61345 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 31, 2016 3:59:11 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107640
Message:

Audio: Fixes for DSound backend.

File:
1 edited

Legend:

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

    r61321 r61345  
    22302230    {
    22312231        PDSOUNDSTREAMIN pDSoundStream = (PDSOUNDSTREAMIN)pStream;
    2232         strmSts |= pDSoundStream->fEnabled ? PDMAUDIOSTRMSTS_FLAG_ENABLED : 0;
     2232        if (pDSoundStream->fEnabled)
     2233            strmSts |= PDMAUDIOSTRMSTS_FLAG_ENABLED | PDMAUDIOSTRMSTS_FLAG_DATA_READABLE;
    22332234    }
    22342235    else
    22352236    {
    22362237        PDSOUNDSTREAMOUT pDSoundStream = (PDSOUNDSTREAMOUT)pStream;
    2237         strmSts |= pDSoundStream->fEnabled ? PDMAUDIOSTRMSTS_FLAG_ENABLED : 0;
     2238        if (pDSoundStream->fEnabled)
     2239            strmSts |= PDMAUDIOSTRMSTS_FLAG_ENABLED | PDMAUDIOSTRMSTS_FLAG_DATA_WRITABLE;
    22382240    }
    22392241
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