VirtualBox

Changeset 88676 in vbox for trunk/src


Ignore:
Timestamp:
Apr 23, 2021 1:04:44 PM (4 years ago)
Author:
vboxsync
Message:

Audio/SB16: Fixed compilation when VBOX_WITH_AUDIO_HDA_ONETIME_INIT is defined.

File:
1 edited

Legend:

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

    r88675 r88676  
    28782878            continue;
    28792879
    2880         /** @todo No input streams available for SB16 yet. */
    2881         if (!pDrv->Out.pStream)
    2882             continue;
    2883 
    28842880        PPDMIAUDIOCONNECTOR pCon = pDrv->pConnector;
    28852881        AssertPtr(pCon);
    2886         if (   pCon == NULL /* paranoia */
    2887             || !(pCon->pfnStreamGetStatus(pCon, pDrv->Out.pStream) & PDMAUDIOSTREAMSTS_FLAGS_INITIALIZED))
     2882
     2883        /** @todo No input streams available for SB16 yet. */
     2884        if (!AudioMixerStreamIsValid(pDrv->Out.pMixStrm))
    28882885        {
    28892886            LogRel(("SB16: Falling back to NULL backend (no sound audible)\n"));
     
    28982895        }
    28992896    }
    2900 #endif
     2897#endif /* VBOX_WITH_AUDIO_SB16_ONETIME_INIT */
    29012898
    29022899    /*
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