diff options
author | dvdli <70133153+dvdli@users.noreply.github.com> | 2020-10-21 14:22:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-21 14:22:07 +0800 |
commit | 2378be171c12271dd76baf099e1e050218a4170b (patch) | |
tree | 3ebd4a05ad66d98c996ca6765bdf83568e817605 | |
parent | 0bfc861f769eab0455461cc10bd323c04862dc99 (diff) | |
parent | ed119360fdf208fc4d36155ace14d12a8b04c018 (diff) |
Merge pull request #185 from notdave22/master
Fix pcm-write example
-rw-r--r-- | examples/pcm-writei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pcm-writei.c b/examples/pcm-writei.c index c6ea1e2..19eafac 100644 --- a/examples/pcm-writei.c +++ b/examples/pcm-writei.c @@ -74,7 +74,7 @@ static int write_frames(const void * frames, size_t byte_count){ unsigned int frame_count = pcm_bytes_to_frames(pcm, byte_count); int err = pcm_writei(pcm, frames, frame_count); - if (err != 0) { + if (err < 0) { printf("error: %s\n", pcm_get_error(pcm)); } |