aifc.aifc.writeframesraw()

aifc.writeframesraw(data) Like writeframes(), except that the header of the audio file is not updated. Changed in version 3.4: Any bytes-like object is now accepted.

aifc.aifc.writeframes()

aifc.writeframes(data) Write data to the output file. This method can only be called after the audio file parameters have been set. Changed in version 3.4: Any bytes-like object is now accepted.

aifc.aifc.tell()

aifc.tell() Return the current frame number.

aifc.aifc.setsampwidth()

aifc.setsampwidth(width) Specify the size in bytes of audio samples.

aifc.aifc.setpos()

aifc.setpos(pos) Seek to the specified frame number.

aifc.aifc.setparams()

aifc.setparams(nchannels, sampwidth, framerate, comptype, compname) Set all the above parameters at once. The argument is a tuple consisting of the various parameters. This means that it is possible to use the result of a getparams() call as argument to setparams().

aifc.aifc.setnframes()

aifc.setnframes(nframes) Specify the number of frames that are to be written to the audio file. If this parameter is not set, or not set correctly, the file needs to support seeking.

aifc.aifc.setnchannels()

aifc.setnchannels(nchannels) Specify the number of channels in the audio file.

aifc.aifc.setmark()

aifc.setmark(id, pos, name) Add a mark with the given id (larger than 0), and the given name at the given position. This method can be called at any time before close().

aifc.aifc.setframerate()

aifc.setframerate(rate) Specify the sampling frequency in frames per second.