Lines Matching refs:_file
129 self._file = Chunk(file, bigendian = 0)
130 if self._file.getname() != b'RIFF':
132 if self._file.read(4) != b'WAVE':
139 chunk = Chunk(self._file, bigendian = 0)
183 return self._file
190 self._file = None
315 self._file = file
433 self._file.write(data)
444 if self._file:
448 self._file.flush()
450 self._file = None
472 self._file.write(b'RIFF')
477 self._form_length_pos = self._file.tell()
480 self._file.write(struct.pack('<L4s4sLHHLLHH4s',
487 self._data_length_pos = self._file.tell()
488 self._file.write(struct.pack('<L', self._datalength))
495 curpos = self._file.tell()
496 self._file.seek(self._form_length_pos, 0)
497 self._file.write(struct.pack('<L', 36 + self._datawritten))
498 self._file.seek(self._data_length_pos, 0)
499 self._file.write(struct.pack('<L', self._datawritten))
500 self._file.seek(curpos, 0)