VirtualBox

Changeset 91176 in vbox


Ignore:
Timestamp:
Sep 9, 2021 10:02:26 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146830
Message:

Audio/Validation Kit: Some more diagnostics to find out why some testbox guests refuse to play any test tones [build fix]. ​bugref:10008

File:
1 edited

Legend:

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

    r91174 r91176  
    3737
    3838#include <pulse/pulseaudio.h>
    39 #include <pulse/rtclock.h>
    4039#ifndef PA_STREAM_NOFLAGS
    4140# define PA_STREAM_NOFLAGS  (pa_context_flags_t)0x0000U /* since 0.9.19 */
     
    157156    /** Internal byte offset. */
    158157    uint64_t                offInternal;
     158#ifdef LOG_ENABLED
    159159    /** Creation timestamp (in microsecs) of stream playback / recording. */
    160160    pa_usec_t               tsStartUs;
    161161    /** Timestamp (in microsecs) when last read from / written to the stream. */
    162162    pa_usec_t               tsLastReadWrittenUs;
     163#endif
    163164    /** Number of occurred audio data underflows. */
    164165    uint32_t                cUnderflows;
     
    835836            const pa_sample_spec *pSpec  = pa_stream_get_sample_spec(pStream);
    836837            AssertReturnVoid(pSpec);
    837             LogRel2(("PulseAudio: Timing info: writepos=%'RU64 us, readpost=%'RU64 us, age=%'RU64 us, latency=%'RU64 us (%RU32Hz %RU8ch)\n",
     838            LogRel2(("PulseAudio: Timing info: writepos=%'RU64 us, readpost=%'RU64 us, latency=%'RU64 us (%RU32Hz %RU8ch)\n",
    838839                     pa_bytes_to_usec(pTInfo->write_index, pSpec), pa_bytes_to_usec(pTInfo->read_index, pSpec),
    839                      pa_rtclock_now() - pStreamPA->tsStartUs, cUsLatency, pSpec->rate, pSpec->channels));
    840         }
     840                     cUsLatency, pSpec->rate, pSpec->channels));
     841        }
     842
     843#ifdef LOG_ENABLED
     844        Log2Func(("age=%'RU64 us\n", pa_rtclock_now() - pStreamPA->tsStartUs));
     845#endif
    841846    }
    842847}
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