Mercurial > hg > octave-lyh
changeset 5937:0c8ac963ae69
[project @ 2006-08-18 00:58:08 by jwe]
author | jwe |
---|---|
date | Fri, 18 Aug 2006 00:58:08 +0000 |
parents | 683839bd5407 |
children | 5a3a716c257d |
files | scripts/ChangeLog scripts/audio/wavread.m |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2006-08-17 John W. Eaton <jwe@octave.org> + + * audio/wavread.m: Fix calculation of sample count. + 2006-08-14 Søren Hauberg <soren@hauberg.org> * image/imshow.m: New Matlab-compatible version.
--- a/scripts/audio/wavread.m +++ b/scripts/audio/wavread.m @@ -164,7 +164,7 @@ elseif (size (param, 2) == 4 && char (param) == "size") ## size of the file is requested fclose (fid); - y = [ck_size/channels/bits_per_sample/8, channels]; + y = [ck_size/channels/(bits_per_sample/8), channels]; return else fclose (fid);