Waiting for PCM to finish before exiting

This commit is contained in:
Taylor Holberton
2020-04-24 13:44:14 -04:00
parent db4b49bd01
commit d5fea77414
+2
View File
@@ -421,6 +421,8 @@ int play_sample(struct ctx *ctx)
}
} while (!close && num_read > 0);
pcm_wait(ctx->pcm, -1);
free(buffer);
return 0;
}