VirtualBox

Changeset 73812 in vbox for trunk


Ignore:
Timestamp:
Aug 22, 2018 8:36:02 AM (6 years ago)
Author:
vboxsync
Message:

Audio/DrvAudio: Logging.

File:
1 edited

Legend:

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

    r73785 r73812  
    955955            else
    956956            {
    957                 Log3Func(("[%s] Buffer: Writing %RU32 frames (%RU64ms), now filled with %RU64ms -- %RU8%%\n",
     957                Log3Func(("[%s] Writing %RU32 frames (%RU64ms), now filled with %RU64ms -- %RU8%%\n",
    958958                          pStream->szName, cfGstWritten, DrvAudioHlpFramesToMilli(cfGstWritten, &pStream->Guest.Cfg.Props),
    959959                          DrvAudioHlpFramesToMilli(AudioMixBufUsed(&pStream->Host.MixBuf), &pStream->Host.Cfg.Props),
     
    981981        }
    982982
    983         Log3Func(("[%s] cbToWrite=%RU32, cfHstUsed=%RU32, cfHstfLive=%RU32, cfGstWritten=%RU32, cfGstMixed=%RU32, rc=%Rrc\n",
    984                   pStream->szName, cbToWrite, AudioMixBufUsed(&pStream->Host.MixBuf),
    985                   AudioMixBufLive(&pStream->Host.MixBuf), cfGstWritten, cfGstMixed, rc));
     983        Log3Func(("[%s] Dbg: cbBuf=%RU32, cbToWrite=%RU32, cfHstUsed=%RU32, cfHstfLive=%RU32, cfGstWritten=%RU32, "
     984                  "cfGstMixed=%RU32, cbWrittenTotal=%RU32, rc=%Rrc\n",
     985                  pStream->szName, cbBuf, cbToWrite, AudioMixBufUsed(&pStream->Host.MixBuf),
     986                  AudioMixBufLive(&pStream->Host.MixBuf), cfGstWritten, cfGstMixed, cbWrittenTotal, rc));
    986987
    987988    } while (0);
    988 
    989     Log3Func(("[%s] cbWrittenTotal=%RU32, rc=%Rrc\n", pStream->szName, cbWrittenTotal, rc));
    990989
    991990#ifdef LOG_ENABLED
     
    14101409        const uint64_t tsDeltaPlayedCapturedNs = RTTimeNanoTS() - pStream->tsLastPlayedCapturedNs;
    14111410
    1412               uint32_t cfPassed    = DrvAudioHlpNanoToFrames(tsDeltaPlayedCapturedNs, &pStream->Host.Cfg.Props);
     1411              uint32_t cfPassedReal = DrvAudioHlpNanoToFrames(tsDeltaPlayedCapturedNs, &pStream->Host.Cfg.Props);
    14131412#endif
    14141413        const uint32_t cfPeriod     = pStream->Host.Cfg.Backend.cfPeriod;
     
    14261425            {
    14271426                LogRel2(("Audio: Stream '%s' buffering complete\n", pStream->szName));
     1427                Log3Func(("[%s] Dbg: Buffering complete\n", pStream->szName));
    14281428                fDoPlay = true;
    14291429            }
     
    14371437            {
    14381438                LogRel2(("Audio: Stream '%s' buffering complete (short sound)\n", pStream->szName));
     1439                Log3Func(("[%s] Dbg: Buffering complete (short)\n", pStream->szName));
    14391440                fDoPlay = true;
    14401441            }
     
    14451446                fJustStarted = true;
    14461447                LogRel2(("Audio: Stream '%s' started playing\n", pStream->szName));
     1448                Log3Func(("[%s] Dbg: started playing\n", pStream->szName));
    14471449            }
    14481450            else /* Not yet, so still buffering audio data. */
     
    15051507            }
    15061508
    1507             Log3Func(("[%s] Dbg: fJustStarted=%RTbool, cfPassed=%RU32 (%RU64ms), cfLive=%RU32 (%RU64ms), cfPeriod=%RU32 (%RU64ms), "
    1508                       "cfWritable=%RU32 (%RU64ms), -> cfToPlay=%RU32 (%RU64ms), cfPlayed=%RU32 (%RU64ms)\n",
     1509            Log3Func(("[%s] Dbg: fJustStarted=%RTbool, cfSched=%RU32 (%RU64ms), cfPassedReal=%RU32 (%RU64ms), "
     1510                      "cfLive=%RU32 (%RU64ms), cfPeriod=%RU32 (%RU64ms), cfWritable=%RU32 (%RU64ms), "
     1511                      "-> cfToPlay=%RU32 (%RU64ms), cfPlayed=%RU32 (%RU64ms)\n",
    15091512                      pStream->szName, fJustStarted,
    1510                       cfPassed, DrvAudioHlpFramesToMilli(cfPassed, &pStream->Host.Cfg.Props),
     1513                      DrvAudioHlpMilliToFrames(pStream->Guest.Cfg.Device.uSchedulingHintMs, &pStream->Host.Cfg.Props),
     1514                      pStream->Guest.Cfg.Device.uSchedulingHintMs,
     1515                      cfPassedReal, DrvAudioHlpFramesToMilli(cfPassedReal, &pStream->Host.Cfg.Props),
    15111516                      cfLive, DrvAudioHlpFramesToMilli(cfLive, &pStream->Host.Cfg.Props),
    15121517                      cfPeriod, DrvAudioHlpFramesToMilli(cfPeriod, &pStream->Host.Cfg.Props),
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