Lines Matching refs:_file
128 self._file = Chunk(file, bigendian = 0)
129 if self._file.getname() != b'RIFF':
131 if self._file.read(4) != b'WAVE':
138 chunk = Chunk(self._file, bigendian = 0)
182 return self._file
189 self._file = None
314 self._file = file
432 self._file.write(data)
443 if self._file:
447 self._file.flush()
449 self._file = None
471 self._file.write(b'RIFF')
476 self._form_length_pos = self._file.tell()
479 self._file.write(struct.pack('<L4s4sLHHLLHH4s',
486 self._data_length_pos = self._file.tell()
487 self._file.write(struct.pack('<L', self._datalength))
494 curpos = self._file.tell()
495 self._file.seek(self._form_length_pos, 0)
496 self._file.write(struct.pack('<L', 36 + self._datawritten))
497 self._file.seek(self._data_length_pos, 0)
498 self._file.write(struct.pack('<L', self._datawritten))
499 self._file.seek(curpos, 0)