comparison scripts/audio/wavread.m @ 12097:7d396910b6c5 release-3-2-x

wavread.m: rename data_size from obsolete ck_size
author Christophe Tournery <christophe.tournery@illusonic.com>
date Fri, 20 Nov 2009 10:44:02 +0100
parents eb63fbe60fab
children 95c3e38098bf
comparison
equal deleted inserted replaced
12096:61c4f397499c 12097:7d396910b6c5
167 endif 167 endif
168 length = (param(2)-param(1)+1) * channels; 168 length = (param(2)-param(1)+1) * channels;
169 elseif (size (param, 2) == 4 && char (param) == "size") 169 elseif (size (param, 2) == 4 && char (param) == "size")
170 ## Size of the file is requested. 170 ## Size of the file is requested.
171 fclose (fid); 171 fclose (fid);
172 y = [ck_size/channels/(bits_per_sample/8), channels]; 172 y = [data_size/channels/(bits_per_sample/8), channels];
173 return 173 return
174 else 174 else
175 fclose (fid); 175 fclose (fid);
176 error ("wavread: invalid argument 2"); 176 error ("wavread: invalid argument 2");
177 endif 177 endif