Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
toaiff Namespace Reference

Data Structures

class  error
 

Functions

def toaiff
 

Variables

list __all__ = ["error", "toaiff"]
 
dictionary table = {}
 
tuple t = pipes.Template()
 
tuple uncompress = pipes.Template()
 

Detailed Description

Convert "arbitrary" sound files to AIFF (Apple and SGI's audio format).

Input may be compressed.
Uncompressed file type may be AIFF, WAV, VOC, 8SVX, NeXT/Sun, and others.
An exception is raised if the file is not of a recognized type.
Returned filename is either the input filename or a temporary filename;
in the latter case the caller must ensure that it is removed.
Other temporary files used are removed by the function.

Function Documentation

def toaiff.toaiff (   filename)

Definition at line 61 of file toaiff.py.

61 
62 def toaiff(filename):
63  temps = []
64  ret = None
65  try:
66  ret = _toaiff(filename, temps)
67  finally:
68  for temp in temps[:]:
69  if temp != ret:
70  try:
71  os.unlink(temp)
72  except os.error:
73  pass
74  temps.remove(temp)
75  return ret

Variable Documentation

list __all__ = ["error", "toaiff"]

Definition at line 16 of file toaiff.py.

tuple t = pipes.Template()

Definition at line 20 of file toaiff.py.

dictionary table = {}

Definition at line 18 of file toaiff.py.

tuple uncompress = pipes.Template()

Definition at line 54 of file toaiff.py.