Changeset 91176 in vbox
- Timestamp:
- Sep 9, 2021 10:02:26 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 146830
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostAudioPulseAudio.cpp
r91174 r91176 37 37 38 38 #include <pulse/pulseaudio.h> 39 #include <pulse/rtclock.h>40 39 #ifndef PA_STREAM_NOFLAGS 41 40 # define PA_STREAM_NOFLAGS (pa_context_flags_t)0x0000U /* since 0.9.19 */ … … 157 156 /** Internal byte offset. */ 158 157 uint64_t offInternal; 158 #ifdef LOG_ENABLED 159 159 /** Creation timestamp (in microsecs) of stream playback / recording. */ 160 160 pa_usec_t tsStartUs; 161 161 /** Timestamp (in microsecs) when last read from / written to the stream. */ 162 162 pa_usec_t tsLastReadWrittenUs; 163 #endif 163 164 /** Number of occurred audio data underflows. */ 164 165 uint32_t cUnderflows; … … 835 836 const pa_sample_spec *pSpec = pa_stream_get_sample_spec(pStream); 836 837 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", 838 839 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 841 846 } 842 847 }
Note:
See TracChangeset
for help on using the changeset viewer.