MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/self/root/proc/3/cwd/usr/lib/python2.4/toaiff.pyo
mò
‚=5Dc@sŽdZdkZdkZdkZdkZddgZhZeiƒZei	ddƒeed<eiƒZei	ddƒeed<eiƒZei	d	dƒeed
<eiƒZei	ddƒeed<eiƒZei	d
dƒeed<eiƒZei	ddƒeed<eiƒZei	ddƒeed<eiƒZ
e
i	ddƒdefd„ƒYZd„Z
d„ZdS(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.
Nterrorttoaiffssox -t au - -t aiff -r 8000 -s--taus sox -t hcom - -t aiff -r 22050 -thcomssox -t voc - -t aiff -r 11025 -tvocssox -t wav - -t aiff -twavs sox -t 8svx - -t aiff -r 16000 -t8svxs sox -t sndt - -t aiff -r 16000 -tsndts sox -t sndr - -t aiff -r 16000 -tsndrt
uncompresscBstZRS(N(t__name__t
__module__(((t/usr/lib/python2.4/toaiff.pyR:sc	Csg}d}zt||ƒ}WdxW|D]N}||jo;yti|ƒWntij
onX|i	|ƒq*q*WX|S(N(
ttempstNonetrett_toaifftfilenamettemptostunlinkRtremove(RRRR
((RR=s
cCs|ddjoZtiƒ\}}ti|ƒ|i|ƒt	i
||ƒ}|ot|d‚qqn|}y(t
i|ƒ}|o|d}nWnÃtj
o·}t|ƒtfƒjo[t|ƒdjoHt|dƒtdƒjo+t|dƒtdƒjo|d}nt|ƒtdƒjot|ƒ}nt|d|‚nX|d	jo|Sn|djp
|tjotd
||f‚ntiƒ\}}ti|ƒ|i|ƒt|i
||ƒ}|ot|d‚n|S(Niþÿÿÿs.Zs: uncompress failediiits: taiffs"%s: unsupported audio file type %rs: conversion to aiff failed(RttempfiletmkstemptfdtfnameRtcloseR
tappendR	tcopytstsRtsndhdrtwhathdrtftypetIOErrortmsgttypetlentreprRttableR(RR
RR"RRRR$((RRLs:

f


(t__doc__RRtpipesR t__all__R(tTemplatettRR	t	ExceptionRRR(R+R	RR*RR-RR(R RR((Rt?	s@