VirtualBox

Changeset 92057 in vbox for trunk


Ignore:
Timestamp:
Oct 26, 2021 7:02:32 AM (3 years ago)
Author:
vboxsync
Message:

Audio/Validation Kit: Logging tweaks. ​bugref:10008

Location:
trunk/src/VBox
Files:
2 edited

Legend:

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

    r92052 r92057  
    703703        err = snd_pcm_set_chmap(hPCM, &u.Map);
    704704        if (err < 0)
    705             LogRel2(("ALSA: snd_pcm_set_chmap failed: %s (%d)\n", snd_strerror(err), err));
     705        {
     706            if (err == -ENXIO)
     707                LogRel2(("ALSA: Audio device does not support channel maps, skipping\n"));
     708            else
     709                LogRel2(("ALSA: snd_pcm_set_chmap failed: %s (%d)\n", snd_strerror(err), err));
     710        }
    706711    }
    707712
  • trunk/src/VBox/ValidationKit/utils/audio/vkatCommon.cpp

    r92047 r92057  
    664664                RTMSINTERVAL const msSleep = RT_MIN(RT_MAX(1, pStream->Cfg.Device.cMsSchedulingHint), 256);
    665665
    666                 if (   !nsLastMsgCantWrite
    667                     || nsNow - nsLastMsgCantWrite > RT_NS_10SEC) /* Don't spam the output too much. */
     666                if (   g_uVerbosity >= 3
     667                    && (   !nsLastMsgCantWrite
     668                        || (nsNow - nsLastMsgCantWrite) > RT_NS_10SEC) /* Don't spam the output too much. */
    668669                {
    669670                    RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Waiting %RU32ms for stream to be writable again (last write %RU64ns ago) ...\n",
     
    813814
    814815                if (   g_uVerbosity >= 3
    815                     && (!nsLastMsgCantRead || nsNow - nsLastMsgCantRead > RT_NS_10SEC)) /* Don't spam the output too much. */
     816                    && (   !nsLastMsgCantRead
     817                        || (nsNow - nsLastMsgCantRead) > RT_NS_10SEC)) /* Don't spam the output too much. */
    816818                {
    817819                    RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Waiting %RU32ms for stream to be readable again ...\n", msSleep);
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