Mercurial > hg > octave-lyh
comparison scripts/audio/wavread.m @ 11633:a3710cf0b010 release-3-0-x
limit data read to data chunk in wavread.m
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 08 Feb 2008 03:43:53 -0500 |
parents | aeeb646f6538 |
children | bc982528de11 72830070a17b |
comparison
equal
deleted
inserted
replaced
11632:eaaa74f38140 | 11633:a3710cf0b010 |
---|---|
149 endswitch | 149 endswitch |
150 endif | 150 endif |
151 | 151 |
152 ## parse arguments | 152 ## parse arguments |
153 if (nargin == 1) | 153 if (nargin == 1) |
154 length = inf; | 154 length = 8 * ck_size / bits_per_sample; |
155 else | 155 else |
156 if (size (param, 2) == 1) | 156 if (size (param, 2) == 1) |
157 ## number of samples is given | 157 ## number of samples is given |
158 length = param * channels; | 158 length = param * channels; |
159 elseif (size (param, 2) == 2) | 159 elseif (size (param, 2) == 2) |