mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
rate limit underrun messages
This commit is contained in:
parent
0933f1a2a4
commit
3d33172791
2 changed files with 5 additions and 2 deletions
|
|
@ -190,6 +190,8 @@ static size_t check_left_to_play(struct userdata *u, snd_pcm_sframes_t n) {
|
||||||
if (left_to_play > 0) {
|
if (left_to_play > 0) {
|
||||||
/* pa_log_debug("%0.2f ms left to play", (double) pa_bytes_to_usec(left_to_play, &u->sink->sample_spec) / PA_USEC_PER_MSEC); */
|
/* pa_log_debug("%0.2f ms left to play", (double) pa_bytes_to_usec(left_to_play, &u->sink->sample_spec) / PA_USEC_PER_MSEC); */
|
||||||
} else if (!u->first && !u->after_rewind) {
|
} else if (!u->first && !u->after_rewind) {
|
||||||
|
|
||||||
|
if (pa_log_ratelimit())
|
||||||
pa_log_info("Underrun!");
|
pa_log_info("Underrun!");
|
||||||
|
|
||||||
if (u->use_tsched) {
|
if (u->use_tsched) {
|
||||||
|
|
|
||||||
|
|
@ -187,6 +187,7 @@ static size_t check_left_to_record(struct userdata *u, snd_pcm_sframes_t n) {
|
||||||
if (left_to_record > 0) {
|
if (left_to_record > 0) {
|
||||||
/* pa_log_debug("%0.2f ms left to record", (double) pa_bytes_to_usec(left_to_record, &u->source->sample_spec) / PA_USEC_PER_MSEC); */
|
/* pa_log_debug("%0.2f ms left to record", (double) pa_bytes_to_usec(left_to_record, &u->source->sample_spec) / PA_USEC_PER_MSEC); */
|
||||||
} else {
|
} else {
|
||||||
|
if (pa_log_ratelimit())
|
||||||
pa_log_info("Overrun!");
|
pa_log_info("Overrun!");
|
||||||
|
|
||||||
if (u->use_tsched) {
|
if (u->use_tsched) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue