Lines Matching refs:_file
129 self._file = Chunk(file, bigendian = 0)
130 if self._file.getname() != 'RIFF':
132 if self._file.read(4) != 'WAVE':
139 chunk = Chunk(self._file, bigendian = 0)
176 return self._file
183 self._file = None
318 self._file = file
433 data.tofile(self._file)
438 self._file.write(data)
449 if self._file:
453 self._file.flush()
455 self._file = None
477 self._file.write('RIFF')
481 self._form_length_pos = self._file.tell()
482 self._file.write(struct.pack('<L4s4sLHHLLHH4s',
488 self._data_length_pos = self._file.tell()
489 self._file.write(struct.pack('<L', self._datalength))
496 curpos = self._file.tell()
497 self._file.seek(self._form_length_pos, 0)
498 self._file.write(struct.pack('<L', 36 + self._datawritten))
499 self._file.seek(self._data_length_pos, 0)
500 self._file.write(struct.pack('<L', self._datawritten))
501 self._file.seek(curpos, 0)