diff options
-rw-r--r-- | modules/alsa/alsa_play.c | 3 | ||||
-rw-r--r-- | modules/alsa/alsa_src.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/modules/alsa/alsa_play.c b/modules/alsa/alsa_play.c index bcc730b..b21ce3d 100644 --- a/modules/alsa/alsa_play.c +++ b/modules/alsa/alsa_play.c @@ -36,6 +36,7 @@ static void auplay_destructor(void *arg) /* Wait for termination of other thread */ if (st->run) { + debug("alsa: stopping playback thread (%s)\n", st->device); st->run = false; (void)pthread_join(st->thread, NULL); } @@ -141,6 +142,8 @@ int alsa_play_alloc(struct auplay_st **stp, const struct auplay *ap, goto out; } + debug("alsa: playback started (%s)\n", st->device); + out: if (err) mem_deref(st); diff --git a/modules/alsa/alsa_src.c b/modules/alsa/alsa_src.c index 0a5d548..0f611ea 100644 --- a/modules/alsa/alsa_src.c +++ b/modules/alsa/alsa_src.c @@ -36,6 +36,7 @@ static void ausrc_destructor(void *arg) /* Wait for termination of other thread */ if (st->run) { + debug("alsa: stopping recording thread (%s)\n", st->device); st->run = false; (void)pthread_join(st->thread, NULL); } @@ -142,6 +143,8 @@ int alsa_src_alloc(struct ausrc_st **stp, const struct ausrc *as, goto out; } + debug("alsa: recording started (%s)\n", st->device); + out: if (err) mem_deref(st); |