VirtualBox

Changeset 63737 in vbox


Ignore:
Timestamp:
Sep 6, 2016 8:43:12 AM (8 years ago)
Author:
vboxsync
Message:

Audio/DevSB16.cpp: Stream validation on construction not needed anymore (due to audio device enumeration + callbacks).

File:
1 edited

Legend:

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

    r63718 r63737  
    24192419
    24202420    sb16ResetLegacy(pThis);
    2421 
    2422     PSB16DRIVER pDrv;
    2423     RTListForEach(&pThis->lstDrv, pDrv, SB16DRIVER, Node)
    2424     {
    2425         /*
    2426          * Only primary drivers are critical for the VM to run. Everything else
    2427          * might not worth showing an own error message box in the GUI.
    2428          */
    2429         if (!(pDrv->Flags & PDMAUDIODRVFLAGS_PRIMARY))
    2430             continue;
    2431 
    2432         PPDMIAUDIOCONNECTOR pCon = pDrv->pConnector;
    2433         AssertPtr(pCon);
    2434 
    2435         /** @todo No input streams available for SB16 yet. */
    2436         bool fValidOut = pCon->pfnStreamGetStatus(pCon, pDrv->Out.pStream) & PDMAUDIOSTRMSTS_FLAG_INITIALIZED;
    2437         if (!fValidOut)
    2438         {
    2439             LogRel(("SB16: Falling back to NULL backend (no sound audible)\n"));
    2440 
    2441             sb16ResetLegacy(pThis);
    2442             sb16Reattach(pThis, pDrv, pDrv->uLUN, "NullAudio");
    2443 
    2444             PDMDevHlpVMSetRuntimeError(pDevIns, 0 /*fFlags*/, "HostAudioNotResponding",
    2445                 N_("No audio devices could be opened. Selecting the NULL audio backend "
    2446                    "with the consequence that no sound is audible"));
    2447         }
    2448     }
    24492421
    24502422#ifndef VBOX_WITH_AUDIO_SB16_CALLBACKS
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