Lines Matching refs:nframes
28 def check_params(self, f, nchannels, sampwidth, framerate, nframes,
33 self.assertEqual(f.getnframes(), nframes)
39 (nchannels, sampwidth, framerate, nframes, comptype, compname))
43 self.assertEqual(params.nframes, nframes)
62 def check_file(self, testfile, nframes, frames):
67 self.assertEqual(f.getnframes(), nframes)
68 self.assertEqual(f.readframes(nframes), frames)
72 f.setnframes(self.nframes)
75 self.nframes, self.comptype, self.compname)
127 f.setnframes(self.nframes)
131 self.check_file(TESTFN, self.nframes, self.frames)
135 f.setnframes(self.nframes)
139 self.check_file(TESTFN, self.nframes, self.frames)
143 f.setnframes(self.nframes)
147 self.check_file(TESTFN, self.nframes, self.frames)
151 f.setnframes(self.nframes)
155 self.check_file(TESTFN, self.nframes, self.frames)
161 f.setnframes(self.nframes + 1)
167 self.check_file(testfile, self.nframes, self.frames)
173 f.setnframes(self.nframes)
181 self.check_file(testfile, self.nframes, self.frames)
187 f.setnframes(self.nframes - 1)
193 self.check_file(testfile, self.nframes, self.frames)
197 f.setnframes(self.nframes)
201 self.check_file(testfile, self.nframes, self.frames)
206 f.setnframes(self.nframes)
209 self.check_file(TESTFN, self.nframes, self.frames)
215 f.setnframes(self.nframes + 1)
227 self.check_file(testfile, self.nframes + 1, self.frames)
233 f.setnframes(self.nframes - 1)
246 self.check_file(testfile, self.nframes - 1, self.frames[:-framesize])
329 self.assertEqual(f.readframes(self.nframes), self.frames)