aboutsummaryrefslogtreecommitdiff
path: root/utils/tinyplay.c
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2016-12-01 21:39:53 -0800
committerTaylor Holberton <taylorcholberton@gmail.com>2016-12-01 21:39:53 -0800
commit053a009cab9ad0e440e511a1546e9cba415565d7 (patch)
tree8c9ee73c50c8eaba24c87389e0eb7d1754f492c8 /utils/tinyplay.c
parentf42051ce4de1a3b2655c2cab778338fe66ee9580 (diff)
parent6860acb720fcc5d67639b72aa349b16e1fc6acc6 (diff)
Merge branch 'develop'
This merges all the changes for the 1.1.0 release to the master branch.
Diffstat (limited to 'utils/tinyplay.c')
-rw-r--r--utils/tinyplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/tinyplay.c b/utils/tinyplay.c
index db1b611..d0c1e36 100644
--- a/utils/tinyplay.c
+++ b/utils/tinyplay.c
@@ -409,7 +409,7 @@ int play_sample(struct ctx *ctx)
do {
num_read = fread(buffer, 1, size, ctx->file);
if (num_read > 0) {
- if (pcm_write(ctx->pcm, buffer, num_read)) {
+ if (pcm_writei(ctx->pcm, buffer, num_read) < 0) {
fprintf(stderr, "error playing sample\n");
break;
}