| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
now it does. This also means getfp method now returns the real fp.
|
| |
|
| |
|
|
|
|
|
|
|
| |
process instead of throwing errors for anything not in an explicit
skip list. This is per this spec: http://www.cnpbagwell.com/aiff-c.txt.
Spec reference and test sound file provided by Santiago Peresón, fix
based on patch by Hiroaki Kawai.
|
| |
|
| |
|
|
|
|
| |
From SF patch #852334.
|
| |
|
|
|
|
|
| |
- remove unnecessary imports
- rename dum -> dummy
|
|
|
|
|
|
|
|
| |
added test script and expected output file as well
this closes patch 103297.
__all__ attributes will be added to other modules without first submitting
a patch, just adding the necessary line to the test script to verify
more-or-less correct implementation.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
comments, docstrings or error messages. I fixed two minor things in
test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't").
There is a minor style issue involved: Guido seems to have preferred English
grammar (behaviour, honour) in a couple places. This patch changes that to
American, which is the more prominent style in the source. I prefer English
myself, so if English is preferred, I'd be happy to supply a patch myself ;)
|
|
|
|
|
| |
The (relatively) new chunk module uses seek, not setpos. One instance
of the call still needed to be fixed.
|
|
|
|
|
|
|
|
|
|
|
| |
1. Comments at the beginning of the module, before
functions, and before classes have been turned
into docstrings.
2. Tabs are normalized to four spaces.
Also, removed the "remove" function from dircmp.py, which reimplements
list.remove() (it must have been very old).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"""
Extended chunk so that it can also handle formats that are almost
according to EA IFF 85. In particular, added options to handle
little-endian and to handle formats that include the header size in
the chunk size value.
Fixed a bug where the header size was included in the chunk size, which
it isn't according to EA IFF 85.
Added a new method getsize() to get the size of the chunk (excluding
header).
Fixed chunk documentation (TIFF doesn't look like it uses chunks).
Converted wave to use chunk. Wave uses EA IFF 85 chunks except that
it uses little-endian encoding of integer data.
Removed __del__ methods from aifc and wave since I got an
AttributeError there upon exit.
"""
|
| |
|
|
|
|
| |
Separate the Chunk class out of the aifc module into a new "chunk" module.
|
|
|
|
| |
undefined 'nframes'. Should be self._nframes. (Andrew Dalke & kjpylint)
|
|
|
|
| |
Don't use CL module since all constants are now in cl.
|
|
|
|
|
|
| |
the description of setparams() was wrong.
wave.py: Include the tag of an unknown format in the exception.
|
| |
|
|
|
|
|
|
| |
module. (Small problem: struct.pack() won't deal with the Python long
ints returned by struct.unpack() for the 'L' format. Worked around
that for now.)
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Audio_mac.py: Mac specific class for audiodev.py.
aifc.py: open files for reading/writing in binary mode ('rb', 'wb').
|
| |
|
| |
|
| |
|
|
|
|
|
| |
sunau.py: should convert number of frames correctly to number of bytes
when reading.
|
| |
|
| |
|
|
|
|
| |
SUNAUDIODEV.py: Added some constants for Solaris.
|
| |
|
|
|
|
|
|
|
| |
constructors. There is no backward compatibility. Not everything has
been tested.
* aiff.{py,doc}: deleted in favor of aifc.py (which contains its docs as
comments)
|
| |
|
|
|
|
|
|
|
| |
use audioop module as backup for cl module when reading or
writing u-law compressed files.
sunau.py: interface with the same methods as aifc for Sun and NeXT
audio files
|
| |
|
|
|
|
|
|
|
| |
* calendar.py: remove stuff now built in time; some cleanup and
generalization in the calendar printing
* cmd.py: use __init__.
* tzparse.py: This module is no longer necessary -- use builtin time instead!
|
|
|
|
|
| |
* ftplib.py: support __init__ with optional host, port args
* aifc.py: ensure header is written on close even when no data is written
|
|
|
|
|
|
| |
* sndhdr.py: renamed to whatsound.py; use new aifc module for AIFF/AIFC
* ftplib.py: added close() (closes without sending QUIT command)
* aifc.py: documented close()
|
|
|
|
|
|
| |
* Several modules: change "class C(): ..." to "class C: ...".
* flp.py: support for frozen forms.
* Added string.find() which is like index but returns -1 if not found
|
|
|
|
|
| |
algorithms in cl module.
aifc.py: fixed a small bug.
|
|
|
|
| |
aifc.py: Several small improvements. Use new methods from CL module.
|
|
|
|
|
| |
just set file pointer correctly instead of returning the complete
file.
|
|
|
|
|
| |
data.
Pass an extra parameter to the compression library.
|
| |
|
|
(extensive) comments in the file for usage.
|