VirtualBox

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


Ignore:
Timestamp:
Aug 15, 2018 7:15:47 AM (6 years ago)
Author:
vboxsync
Message:

Audio/Mixer: Logging tweaks for audioMixerSinkWriteToStreams().

File:
1 edited

Legend:

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

    r73646 r73683  
    17471747                                                        &cbChunkWritten);
    17481748                if (RT_FAILURE(rc2))
     1749                {
     1750                    if (rc2 == VERR_BUFFER_OVERFLOW)
     1751                    {
     1752                        LogRel2(("Mixer: Buffer overrun for mixer stream '%s' (sink '%s')\n", pMixStream->pszName, pSink->pszName));
     1753#ifdef DEBUG_andy
     1754                        AssertRC(rc2);
     1755#endif
     1756                    }
     1757                    else if (rc2 != VERR_AUDIO_STREAM_NOT_READY)
     1758                        LogRel2(("Mixer: Writing to mixer stream '%s' (sink '%s') failed, rc=%Rrc\n", pMixStream->pszName, pSink->pszName, rc2));
     1759
    17491760                    LogFunc(("[%s] Failed writing to stream '%s': %Rrc\n", pSink->pszName, pMixStream->pszName, rc2));
    1750 #ifdef DEBUG_andy
    1751                 AssertRC(rc2);
    1752 #endif
     1761                }
    17531762            }
    17541763
     
    17671776        Log3Func(("[%s] cbBuf=%RU32, cbWrittenBuf=%RU32, cbWrittenStream=%RU32\n",
    17681777                  pMixStream->pszName, cbBuf, cbWrittenBuf, cbWrittenStream));
    1769 
    1770         if (cbWrittenBuf < cbBuf)
    1771         {
    1772             LogFunc(("[%s] Warning: Only written %RU32/%RU32 bytes for stream '%s'\n",
    1773                      pSink->pszName, cbWrittenBuf, cbBuf, pMixStream->pszName));
    1774             LogRel2(("Mixer: Buffer overrun for mixer stream '%s' (sink '%s')\n", pMixStream->pszName, pSink->pszName));
    1775 #ifdef DEBUG_andy
    1776             AssertFailed();
    1777 #endif
    1778         }
    17791778    }
    17801779
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