VirtualBox

Changeset 74058 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Sep 4, 2018 9:12:35 AM (6 years ago)
Author:
vboxsync
Message:

Audio/DrvAudio: Added some more host driver (backend) checks / return values.

File:
1 edited

Legend:

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

    r74033 r74058  
    13901390        if (!pThis->pHostDrvAudio)
    13911391        {
    1392             rc = VERR_AUDIO_STREAM_NOT_READY;
     1392            rc = VERR_PDM_NO_ATTACHED_DRIVER;
    13931393            break;
    13941394        }
     
    17631763        if (!pThis->pHostDrvAudio)
    17641764        {
    1765             rc = VERR_AUDIO_STREAM_NOT_READY;
     1765            rc = VERR_PDM_NO_ATTACHED_DRIVER;
    17661766            break;
    17671767        }
     
    26832683    }
    26842684    else
    2685         AssertFailed();
     2685        rc = VERR_PDM_NO_ATTACHED_DRIVER;
    26862686
    26872687    int rc2 = RTCritSectLeave(&pThis->CritSect);
     
    27412741    uint32_t cbReadable = 0;
    27422742
    2743     if (DrvAudioHlpStreamStatusCanRead(pStream->fStatus))
     2743    if (   pThis->pHostDrvAudio
     2744        && DrvAudioHlpStreamStatusCanRead(pStream->fStatus))
    27442745    {
    27452746        const uint32_t cfReadable = AudioMixBufLive(&pStream->Guest.MixBuf);
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