summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-01-06 16:27:13 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-01-06 16:27:13 +0100
commit88adec838a1684277412430eccce4b420766c881 (patch)
treee4d9484ce22ca5322822075cf74b4e5e6c65502c
parent96b9b6c0d94606b346bc67b5ce78bb20f2e28769 (diff)
audio: add sample formats to debug
-rw-r--r--src/audio.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/audio.c b/src/audio.c
index 0a18454..b5ce913 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -1959,9 +1959,10 @@ int audio_debug(struct re_printf *pf, const struct audio *a)
err = re_hprintf(pf, "\n--- Audio stream ---\n");
- err |= re_hprintf(pf, " tx: %H ptime=%ums\n",
+ err |= re_hprintf(pf, " tx: encode: %H ptime=%ums %s\n",
aucodec_print, tx->ac,
- tx->ptime);
+ tx->ptime,
+ aufmt_name(tx->enc_fmt));
err |= re_hprintf(pf, " aubuf: %H"
" (cur %.2fms, max %.2fms, or %llu, ur %llu)\n",
aubuf_debug, tx->aubuf,
@@ -1973,14 +1974,15 @@ int audio_debug(struct re_printf *pf, const struct audio *a)
tx->ausrc_prm.ch),
tx->stats.aubuf_overrun,
tx->stats.aubuf_underrun);
-
+ err |= re_hprintf(pf, " source: %s\n",
+ aufmt_name(tx->src_fmt));
err |= re_hprintf(pf, " time = %.3f sec\n",
autx_calc_seconds(tx));
err |= re_hprintf(pf,
- " rx: %H\n"
+ " rx: decode: %H %s\n"
" ptime=%ums pt=%d\n",
- aucodec_print, rx->ac,
+ aucodec_print, rx->ac, aufmt_name(rx->dec_fmt),
rx->ptime, rx->pt);
err |= re_hprintf(pf, " aubuf: %H"
" (cur %.2fms, max %.2fms, or %llu, ur %llu)\n",
@@ -1994,7 +1996,7 @@ int audio_debug(struct re_printf *pf, const struct audio *a)
rx->stats.aubuf_overrun,
rx->stats.aubuf_underrun
);
-
+ err |= re_hprintf(pf, " player: %s\n", aufmt_name(rx->play_fmt));
err |= re_hprintf(pf, " n_discard:%llu\n",
rx->n_discard);
if (rx->level_set) {