aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pcm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pcm.c b/src/pcm.c
index 96a5788..f854a94 100644
--- a/src/pcm.c
+++ b/src/pcm.c
@@ -1129,6 +1129,10 @@ struct pcm *pcm_open(unsigned int card, unsigned int device,
}
#endif
+ /* prepare here so the user does not need to do this later */
+ if (pcm_prepare(pcm))
+ goto fail;
+
pcm->underruns = 0;
return pcm;