OSDN Git Service
(root)
/
android-x86
/
system-media.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8a210a
)
Update tinysndfile to write multichannel WAV
author
Andy Hung
<hunga@google.com>
Thu, 10 Apr 2014 01:52:06 +0000
(18:52 -0700)
committer
Andy Hung
<hunga@google.com>
Thu, 10 Apr 2014 19:02:17 +0000
(12:02 -0700)
Change-Id: Ibe73ff5e787bde8f7c5e4c326e849978410ff58f
Signed-off-by: Andy Hung <hunga@google.com>
audio_utils/tinysndfile.c
patch
|
blob
|
history
diff --git
a/audio_utils/tinysndfile.c
b/audio_utils/tinysndfile.c
index
58c2e9e
..
ad6abf2
100644
(file)
--- a/
audio_utils/tinysndfile.c
+++ b/
audio_utils/tinysndfile.c
@@
-244,7
+244,7
@@
static SNDFILE *sf_open_write(const char *path, SF_INFO *info)
int sub = info->format & SF_FORMAT_SUBMASK;
if (!(
(info->samplerate > 0) &&
- (info->channels
== 1 || info->channels == 2
) &&
+ (info->channels
> 0 && info->channels <= 8
) &&
((info->format & SF_FORMAT_TYPEMASK) == SF_FORMAT_WAV) &&
(sub == SF_FORMAT_PCM_16 || sub == SF_FORMAT_PCM_U8 || sub == SF_FORMAT_FLOAT)
)) {