VirtualBox

Changeset 54975 in vbox


Ignore:
Timestamp:
Mar 26, 2015 7:11:58 PM (10 years ago)
Author:
vboxsync
Message:

PDM/DrvAudio.cpp: Fix for Linux guests.

File:
1 edited

Legend:

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

    r54974 r54975  
    10851085         */
    10861086        PPDMAUDIOGSTSTRMOUT pGstStrmOut;
    1087         if (!cSamplesLive)
    1088         {
    1089             uint32_t cbFree2 = UINT32_MAX;
    1090             RTListForEach(&pHstStrmOut->lstGstStrmOut, pGstStrmOut, PDMAUDIOGSTSTRMOUT, Node)
     1087        uint32_t cbFree2 = UINT32_MAX;
     1088        RTListForEach(&pHstStrmOut->lstGstStrmOut, pGstStrmOut, PDMAUDIOGSTSTRMOUT, Node)
     1089        {
     1090            if (pGstStrmOut->State.fActive)
    10911091            {
    1092                 if (pGstStrmOut->State.fActive)
    1093                 {
    1094                     /* Tell the sound device emulation how many samples are free
    1095                      * so that it can start writing PCM data to us. */
    1096                     cbFree2 = RT_MIN(cbFree2, AUDIOMIXBUF_S2B_RATIO(&pGstStrmOut->MixBuf,
    1097                                                                     audioMixBufFree(&pGstStrmOut->MixBuf)));
    1098 
    1099                     LogFlowFunc(("\t[%s] cbFree=%RU32\n", pGstStrmOut->MixBuf.pszName, cbFree2));
    1100                 }
     1092                /* Tell the sound device emulation how many samples are free
     1093                 * so that it can start writing PCM data to us. */
     1094                cbFree2 = RT_MIN(cbFree2, AUDIOMIXBUF_S2B_RATIO(&pGstStrmOut->MixBuf,
     1095                                                                audioMixBufFree(&pGstStrmOut->MixBuf)));
     1096
     1097                LogFlowFunc(("\t[%s] cbFree=%RU32\n", pGstStrmOut->MixBuf.pszName, cbFree2));
    11011098            }
    1102 
    1103             cbFreeOut = RT_MIN(cbFreeOut, cbFree2);
    1104         }
     1099        }
     1100
     1101        cbFreeOut = RT_MIN(cbFreeOut, cbFree2);
    11051102    }
    11061103
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