aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/tinyplay.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/tinyplay.c b/utils/tinyplay.c
index dde3a21..9bedbab 100644
--- a/utils/tinyplay.c
+++ b/utils/tinyplay.c
@@ -421,6 +421,8 @@ int play_sample(struct ctx *ctx)
}
} while (!close && num_read > 0);
+ pcm_wait(ctx->pcm, -1);
+
free(buffer);
return 0;
}