VirtualBox

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


Ignore:
Timestamp:
Nov 11, 2016 4:11:23 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111893
Message:

Audio: Reverted part of r111751 to fix unit test failure.

File:
1 edited

Legend:

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

    r64565 r64652  
    10141014    uint32_t offDstWrite  = pDst->offWrite;
    10151015
     1016    // Updated code causes tstAudioMixBuffer to fail. Problem is failing the call
     1017    // when source has no available data, which can apparently happen. See #8521.
     1018#if 0
    10161019    if (!cSrcAvail)
     1020    {
    10171021        return VERR_NO_DATA;
     1022    }
     1023#else
     1024    if (   !cSrcAvail
     1025        || !cDstAvail)
     1026    {
     1027        if (pcProcessed)
     1028            *pcProcessed = 0;
     1029        return VINF_SUCCESS;
     1030    }
     1031#endif
    10181032
    10191033    AUDMIXBUF_LOG(("cSrcSamples=%RU32, cSrcAvail=%RU32 -> cDstAvail=%RU32\n", cSrcSamples,  cSrcAvail, cDstAvail));
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette