summaryrefslogtreecommitdiffstats
path: root/Lib/aifc.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix py3k warnings in the aifc moduleAntoine Pitrou2009-10-141-11/+11
|
* Issue5955: aifc's close method did not close the file it wrapped,R. David Murray2009-05-071-3/+4
| | | | now it does. This also means getfp method now returns the real fp.
* actually close files instead of leaving it to the gc #5955Benjamin Peterson2009-05-071-3/+2
|
* prevent ref cycles by removing bound method on close()Benjamin Peterson2009-04-301-0/+2
|
* Fix issue 2245. aifc now skips any chunk type it doesn't actuallyR. David Murray2009-04-291-7/+0
| | | | | | | 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.
* Remove tuple parameter unpacking in aifc to silence warnings under -3.Brett Cannon2008-08-041-1/+2
|
* Add a length check to aifc to ensure it doesn't write a bogus fileBob Ippolito2006-05-301-0/+2
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-2/+2
| | | | From SF patch #852334.
* Fix wanrings about unsigned hex constants.Guido van Rossum2002-08-121-2/+2
|
* SF #515004 cleanupNeal Norwitz2002-02-111-4/+2
| | | | | - remove unnecessary imports - rename dum -> dummy
* added __all__ lists to a number of Python modulesSkip Montanaro2001-01-201-0/+2
| | | | | | | | 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.
* Whitespace standardization.Tim Peters2001-01-141-1/+1
|
* Convert some old-style string exceptions to class exceptions.Fred Drake2000-08-171-1/+2
|
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-1/+1
| | | | | | | | | | 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 ;)
* Sjoerd Mullender:Guido van Rossum2000-03-071-1/+1
| | | | | The (relatively) new chunk module uses seek, not setpos. One instance of the call still needed to be fixed.
* Mass patch by Ka-Ping Yee:Guido van Rossum2000-02-021-917/+918
| | | | | | | | | | | 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).
* Sjoerd Mullender writes:Guido van Rossum1999-08-261-6/+0
| | | | | | | | | | | | | | | | | | | | | | """ 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. """
* Make the mode parameter to open() default in the same way as for wave.open().Fred Drake1999-06-221-4/+9
|
* Patch/new code by Sjoerd Mullender:Guido van Rossum1999-06-091-74/+13
| | | | Separate the Chunk class out of the aifc module into a new "chunk" module.
* The _comp_data() function never worked, it contained a reference toGuido van Rossum1999-05-031-1/+1
| | | | undefined 'nframes'. Should be self._nframes. (Andrew Dalke & kjpylint)
* [Sjoerd Mullender]Guido van Rossum1998-08-071-25/+24
| | | | Don't use CL module since all constants are now in cl.
* Small corrections to comments that were cloned from aifc; moreoverGuido van Rossum1998-04-231-1/+1
| | | | | | the description of setparams() was wrong. wave.py: Include the tag of an unknown format in the exception.
* Use newer struct, which handles unsigned long rightGuido van Rossum1997-01-111-3/+1
|
* Rewrote _{read,write}_{short,long} to use the newly revamped structGuido van Rossum1996-12-311-37/+44
| | | | | | 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.)
* Get rid of access statementGuido van Rossum1996-08-201-9/+9
|
* temporarily disabled the access statementsGuido van Rossum1995-08-101-4/+4
|
* Ignore empty markers.Sjoerd Mullender1994-10-031-1/+5
|
* audiodev.py: Mac port.Guido van Rossum1994-09-161-2/+2
| | | | | Audio_mac.py: Mac specific class for audiodev.py. aifc.py: open files for reading/writing in binary mode ('rb', 'wb').
* Added support for ADPCM compression.Sjoerd Mullender1994-09-061-6/+47
|
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-1/+4
|
* Use __builtin__ instead of builtinGuido van Rossum1994-01-281-3/+3
|
* aifc.py: framerate should be an int.Sjoerd Mullender1994-01-281-1/+1
| | | | | sunau.py: should convert number of frames correctly to number of bytes when reading.
* Removed now useless convert functions.Sjoerd Mullender1994-01-061-12/+0
|
* Removed silly dependence on AL module.Sjoerd Mullender1994-01-061-54/+31
|
* aifc.py, sunau.py: Adapted comments; added access statements.Sjoerd Mullender1993-12-201-8/+18
| | | | SUNAUDIODEV.py: Added some constants for Solaris.
* * aifc.py (Aifc_write): fix bogus reference to filenameGuido van Rossum1993-12-171-0/+3
|
* * Mass change: get rid of all init() methods, in favor of __init__()Guido van Rossum1993-12-171-22/+18
| | | | | | | 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)
* Don't close the file.Sjoerd Mullender1993-12-161-8/+7
|
* aifc.py: added missing tell() method in AIFC write class;Sjoerd Mullender1993-12-131-47/+98
| | | | | | | 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
* Fixed dealing with faulty COMM chunks.Sjoerd Mullender1993-08-261-3/+3
|
* * aifc.py: don't die on invalid MARK chunkGuido van Rossum1993-06-201-5/+14
| | | | | | | * 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!
* * calendar.py: minor cleanupsGuido van Rossum1993-06-171-13/+18
| | | | | * ftplib.py: support __init__ with optional host, port args * aifc.py: ensure header is written on close even when no data is written
* * toaiff.py: import whatsound instead of sndhdrGuido van Rossum1993-06-011-0/+1
| | | | | | * 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()
* * ftplib.py: added abort() command (sends oob data).Guido van Rossum1993-05-241-3/+3
| | | | | | * 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
* AWARE.py: New file with definitions for Aware Inc.'s compressionSjoerd Mullender1993-02-051-4/+6
| | | | | algorithms in cl module. aifc.py: fixed a small bug.
* CL.py, clmodule.c: Adapted to new CL library. Lots of new methods.Sjoerd Mullender1993-02-041-17/+22
| | | | aifc.py: Several small improvements. Use new methods from CL module.
* added kludge for buggy soundfiler from SGI; when reading 0 frames,Sjoerd Mullender1993-01-291-1/+12
| | | | | just set file pointer correctly instead of returning the complete file.
* Fixed a bug where the library inadvertently skipped over the soundSjoerd Mullender1993-01-261-2/+4
| | | | | data. Pass an extra parameter to the compression library.
* Found and fixed a few bugs in the handling of audio files with MARKs.Sjoerd Mullender1993-01-221-12/+8
|
* New module aifc to read and write AIFF-C and AIFF files. SeeSjoerd Mullender1993-01-221-0/+912
(extensive) comments in the file for usage.