diff options
author | dvdli <dvdli@google.com> | 2021-01-28 11:53:30 +0800 |
---|---|---|
committer | dvdli <dvdli@google.com> | 2021-01-28 14:25:40 +0800 |
commit | c0f924738de2b8f5478e8b454b4ad5521802f3f6 (patch) | |
tree | cc0248f32f5e6c7afee5b098d416c846cf435c04 /utils | |
parent | b618ec79a1fde67594d7361c5fdc07d74a464951 (diff) |
prepare in pcm_generic_transfer
Diffstat (limited to 'utils')
-rw-r--r-- | utils/tinycap.c | 1 | ||||
-rw-r--r-- | utils/tinyplay.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/utils/tinycap.c b/utils/tinycap.c index e3aa9df..7d4b8a4 100644 --- a/utils/tinycap.c +++ b/utils/tinycap.c @@ -231,7 +231,6 @@ unsigned int capture_sample(FILE *file, unsigned int card, unsigned int device, pcm_get_error(pcm)); return 0; } - pcm_prepare(pcm); size = pcm_frames_to_bytes(pcm, pcm_get_buffer_size(pcm)); buffer = malloc(size); diff --git a/utils/tinyplay.c b/utils/tinyplay.c index 482ad24..2689158 100644 --- a/utils/tinyplay.c +++ b/utils/tinyplay.c @@ -192,7 +192,6 @@ int ctx_init(struct ctx* ctx, const struct cmd *cmd) pcm_close(ctx->pcm); return -1; } - pcm_prepare(ctx->pcm); return 0; } |