VirtualBox

Changeset 68269 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Aug 3, 2017 7:58:51 AM (7 years ago)
Author:
vboxsync
Message:

Audio/DevIchAc97.cpp: Reset the audio mixer sinks in ichac97Reset() instead of ichac97StreamReset(); the mixer sink(s) might still have data to be processed when an audio stream gets reset. Logging.

File:
1 edited

Legend:

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

    r68021 r68269  
    695695#endif
    696696
    697     LogFunc(("[SD%RU8] cStreamsActive=%RU8, rc=%Rrc\n", pStream->u8SD, pThis->cStreamsActive, rc));
     697    LogFunc(("[SD%RU8] cStreamsActive=%RU8, fEnable=%RTbool, rc=%Rrc\n", pStream->u8SD, pThis->cStreamsActive, fEnable, rc));
    698698    return rc;
    699699}
     
    714714
    715715    LogFunc(("[SD%RU8]\n", pStream->u8SD));
    716 
    717     AudioMixerSinkReset(ichac97IndexToSink(pThis, pStream->u8SD));
    718716
    719717    if (pStream->State.pCircBuf)
     
    31903188    PAC97STATE pThis = PDMINS_2_DATA(pDevIns, PAC97STATE);
    31913189
    3192     LogFlowFuncEnter();
     3190    LogRel(("AC97: Reset\n"));
    31933191
    31943192    /*
     
    32113209    ichac97StreamReset(pThis, &pThis->StreamOut);
    32123210
    3213     LogRel(("AC97: Reset\n"));
     3211    /*
     3212     * Reset mixer sinks.
     3213     */
     3214    AudioMixerSinkReset(pThis->pSinkLineIn);
     3215    AudioMixerSinkReset(pThis->pSinkMicIn);
     3216    AudioMixerSinkReset(pThis->pSinkOut);
    32143217}
    32153218
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