Lines Matching refs:nframes
29 def check_params(self, f, nchannels, sampwidth, framerate, nframes, argument
34 self.assertEqual(f.getnframes(), nframes)
40 (nchannels, sampwidth, framerate, nframes, comptype, compname))
44 self.assertEqual(params.nframes, nframes)
74 def check_file(self, testfile, nframes, frames): argument
79 self.assertEqual(f.getnframes(), nframes)
80 self.assertEqual(f.readframes(nframes), frames)
84 f.setnframes(self.nframes)
87 self.nframes, self.comptype, self.compname)
139 f.setnframes(self.nframes)
143 self.check_file(TESTFN, self.nframes, self.frames)
147 f.setnframes(self.nframes)
151 self.check_file(TESTFN, self.nframes, self.frames)
155 f.setnframes(self.nframes)
159 self.check_file(TESTFN, self.nframes, self.frames)
163 f.setnframes(self.nframes)
167 self.check_file(TESTFN, self.nframes, self.frames)
173 f.setnframes(self.nframes + 1)
179 self.check_file(testfile, self.nframes, self.frames)
185 f.setnframes(self.nframes)
193 self.check_file(testfile, self.nframes, self.frames)
199 f.setnframes(self.nframes - 1)
205 self.check_file(testfile, self.nframes, self.frames)
209 f.setnframes(self.nframes)
213 self.check_file(testfile, self.nframes, self.frames)
218 f.setnframes(self.nframes)
221 self.check_file(TESTFN, self.nframes, self.frames)
227 f.setnframes(self.nframes + 1)
239 self.check_file(testfile, self.nframes + 1, self.frames)
245 f.setnframes(self.nframes - 1)
258 self.check_file(testfile, self.nframes - 1, self.frames[:-framesize])
341 self.assertEqual(f.readframes(self.nframes), self.frames)