Lines Matching refs:nframes
51 def check_params(self, f, nchannels, sampwidth, framerate, nframes, argument
56 self.assertEqual(f.getnframes(), nframes)
62 (nchannels, sampwidth, framerate, nframes, comptype, compname))
79 def check_file(self, testfile, nframes, frames): argument
85 self.assertEqual(f.getnframes(), nframes)
86 self.assertEqual(f.readframes(nframes), frames)
92 f.setnframes(self.nframes)
95 self.nframes, self.comptype, self.compname)
100 f.setnframes(self.nframes)
104 self.check_file(TESTFN, self.nframes, self.frames)
110 f.setnframes(self.nframes + 1)
116 self.check_file(testfile, self.nframes, self.frames)
122 f.setnframes(self.nframes)
130 self.check_file(testfile, self.nframes, self.frames)
136 f.setnframes(self.nframes - 1)
142 self.check_file(testfile, self.nframes, self.frames)
146 f.setnframes(self.nframes)
151 self.check_file(testfile, self.nframes, self.frames)
156 f.setnframes(self.nframes)
161 self.check_file(TESTFN, self.nframes, self.frames)
167 f.setnframes(self.nframes + 1)
179 self.check_file(testfile, self.nframes + 1, self.frames)
185 f.setnframes(self.nframes - 1)
198 self.check_file(testfile, self.nframes - 1, self.frames[:-framesize])
282 self.assertEqual(f.readframes(self.nframes), self.frames)