-í
ç¶<c       sô    d  Z  	  d k Z  d k Z  d k Z  d k Z  d d g Z  h  Z  e i ƒ  Z  e i	 d d ƒ  e e d < e i ƒ  Z  e i	 d d ƒ   e e d <" e i ƒ  Z # e i	 d	 d ƒ $ e e d
 <& e i ƒ  Z ' e i	 d d ƒ ( e e d <* e i ƒ  Z + e i	 d d ƒ , e e d <. e i ƒ  Z / e i	 d d ƒ 0 e e d <2 e i ƒ  Z 3 e i	 d d ƒ 4 e e d <6 e i ƒ  Z
 7 e
 i	 d d ƒ : d e f d „  ƒ  YZ = d „  Z L d „  Z d S(   sª  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.
Ns   errors   toaiffs   sox -t au - -t aiff -r 8000 -s   --s   aus    sox -t hcom - -t aiff -r 22050 -s   hcoms   sox -t voc - -t aiff -r 11025 -s   vocs   sox -t wav - -t aiff -s   wavs    sox -t 8svx - -t aiff -r 16000 -s   8svxs    sox -t sndt - -t aiff -r 16000 -s   sndts    sox -t sndr - -t aiff -r 16000 -s   sndrs
   uncompressc      s   : t  Z ; RS(   N(   s   __name__s
   __module__(    (    (    s   /usr/lib/python2.2/toaiff.pys   error: s   	c  	  s²   = > g  } ? t } @ z A t |  | ƒ } Wd  B C xl | DC ]` } D | | j oJ E y F t i | ƒ Wn G t i j
 o
 H n XI | i	 | ƒ n q? WXJ | Sd  S(   N(
   s   tempss   Nones   rets   _toaiffs   filenames   temps   oss   unlinks   errors   remove(   s   filenames   tempss   temps   ret(    (    s   /usr/lib/python2.2/toaiff.pys   toaiff= s   		 	c    s3  L M |  d d j oV N t i ƒ  } O | i | ƒ P t i |  | ƒ } Q | o R t	 |  d ‚ n n
 T |  } U y1 V t
 i | ƒ } W | o X | d } n WnÐ Y t j
 oÁ } Z t | ƒ t f  ƒ j oJ t | ƒ d j o7 t | d ƒ t d ƒ j o t | d ƒ t d ƒ j o \ | d } n ] t | ƒ t d ƒ j o ^ | } n _ t	 |  d | ‚ n X` | d	 j o a | Sn b | t j p t i | ƒ o c t	 |  d
 | ‚ n e t i ƒ  } f | i | ƒ g t | i | | ƒ } h | o i t	 |  d ‚ n j | Sd  S(   Niþÿÿÿs   .Zs   : uncompress failedi    i   i   s    s   : s   aiffs   : unsupported audio file type s   : conversion to aiff failed(   s   filenames   tempfiles   mktemps   fnames   tempss   appends
   uncompresss   copys   stss   errors   sndhdrs   whathdrs   ftypes   IOErrors   msgs   types   lens   Nones   tables   has_keys   temp(   s   filenames   tempss   temps   stss   ftypes   fnames   msg(    (    s   /usr/lib/python2.2/toaiff.pys   _toaiffL s6   
	
i!
(   s   __doc__s   oss   tempfiles   pipess   sndhdrs   __all__s   tables   Templates   ts   appends
   uncompresss	   Exceptions   errors   toaiffs   _toaiff(   s   __all__s
   uncompresss   tempfiles   pipess   toaiffs   ts   errors   tables   sndhdrs   oss   _toaiff(    (    s   /usr/lib/python2.2/toaiff.pys   ?	 s@   	