VirtualBox

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


Ignore:
Timestamp:
Dec 21, 2016 1:24:13 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
112464
Message:

Audio/AudioMixBuffer.cpp: Removed VERR_NO_DATA rc from audioMixBufMixTo() again.

File:
1 edited

Legend:

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

    r64652 r64981  
    975975 *
    976976 * @return  IPRT status code.
    977  *          VERR_NO_DATA if the source does not have any audio data.
    978977 *          VERR_BUFFER_UNDERFLOW if the source did not have enough audio data.
    979978 *          VERR_BUFFER_OVERFLOW if the destination did not have enough space to store the converted source audio data.
     
    10141013    uint32_t offDstWrite  = pDst->offWrite;
    10151014
    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
    1019     if (!cSrcAvail)
    1020     {
    1021         return VERR_NO_DATA;
    1022     }
    1023 #else
     1015    AUDMIXBUF_LOG(("cSrcSamples=%RU32, cSrcAvail=%RU32 -> cDstAvail=%RU32\n", cSrcSamples,  cSrcAvail, cDstAvail));
     1016
    10241017    if (   !cSrcAvail
    10251018        || !cDstAvail)
     
    10291022        return VINF_SUCCESS;
    10301023    }
    1031 #endif
    1032 
    1033     AUDMIXBUF_LOG(("cSrcSamples=%RU32, cSrcAvail=%RU32 -> cDstAvail=%RU32\n", cSrcSamples,  cSrcAvail, cDstAvail));
    10341024
    10351025#ifdef DEBUG
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