commit | 13bf6299d4f6907bcdc97729a17c6172d46637c9 | [log] [tgz] |
---|---|---|
author | Ricardo Biehl Pasquali <pasqualirb@gmail.com> | Wed Aug 22 16:10:45 2018 -0300 |
committer | Ricardo Biehl Pasquali <pasqualirb@gmail.com> | Tue Jan 08 13:05:27 2019 -0200 |
tree | 0013cc024e585de432b7d2c5b513299a713c3347 | |
parent | 3e06adbab73369ece01493c5e1cb982d7677b307 [diff] [blame] |
pcm: Do prepare action in pcm_open() This eliminates the need for prepare in transfer functions and pcm_start(). Signed-off-by: Ricardo Biehl Pasquali <pasqualirb@gmail.com>
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 @@ } #endif + /* prepare here so the user does not need to do this later */ + if (pcm_prepare(pcm)) + goto fail; + pcm->underruns = 0; return pcm;