• Home
  • Raw
  • Download

Lines Matching refs:_file

306     _file = None  # Set here since __del__ checks it  variable in Aifc_read
313 self._file = file
329 chunk = Chunk(self._file)
370 return self._file
377 file = self._file
379 self._file = None
557 _file = None # Set here since __del__ checks it variable in Aifc_write
576 self._file = file
731 self._file.write(data)
742 if self._file is None:
748 self._file.write(b'\x00')
758 f = self._file
759 self._file = None
808 self._file.write(b'FORM')
824 self._form_length_pos = self._file.tell()
829 self._file.write(b'AIFC')
830 self._file.write(b'FVER')
831 _write_ulong(self._file, 4)
832 _write_ulong(self._file, self._version)
834 self._file.write(b'AIFF')
835 self._file.write(b'COMM')
836 _write_ulong(self._file, commlength)
837 _write_short(self._file, self._nchannels)
839 self._nframes_pos = self._file.tell()
840 _write_ulong(self._file, self._nframes)
842 _write_short(self._file, 8)
844 _write_short(self._file, self._sampwidth * 8)
845 _write_float(self._file, self._framerate)
847 self._file.write(self._comptype)
848 _write_string(self._file, self._compname)
849 self._file.write(b'SSND')
851 self._ssnd_length_pos = self._file.tell()
852 _write_ulong(self._file, self._datalength + 8)
853 _write_ulong(self._file, 0)
854 _write_ulong(self._file, 0)
865 _write_ulong(self._file, 4 + verslength + self._marklength + \
870 curpos = self._file.tell()
873 self._file.write(b'\x00')
879 self._file.seek(curpos, 0)
881 self._file.seek(self._form_length_pos, 0)
883 self._file.seek(self._nframes_pos, 0)
884 _write_ulong(self._file, self._nframeswritten)
885 self._file.seek(self._ssnd_length_pos, 0)
886 _write_ulong(self._file, datalength + 8)
887 self._file.seek(curpos, 0)
894 self._file.write(b'MARK')
901 _write_ulong(self._file, length)
903 _write_short(self._file, len(self._markers))
906 _write_short(self._file, id)
907 _write_ulong(self._file, pos)
908 _write_string(self._file, name)