aifc.open()

aifc.open(file, mode=None) Open an AIFF or AIFF-C file and return an object instance with methods that are described below. The argument file is either a string naming a file or a file object. mode must be 'r' or 'rb' when the file must be opened for reading, or 'w' or 'wb' when the file must be opened for writing. If omitted, file.mode is used if it exists, otherwise 'rb' is used. When used for writing, the file object should be seekable, unless you know ahead of time how many samples you a

aifc.aifc.setsampwidth()

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

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.

all()

all(iterable) Return True if all elements of the iterable are true (or if the iterable is empty). Equivalent to: def all(iterable): for element in iterable: if not element: return False return True

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.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.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.setframerate()

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

aifc.aifc.setpos()

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

aifc.aifc.setnchannels()

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