MOON
Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4
System: Linux vps.panamaemb.org.sg 3.10.0-1160.80.1.vz7.191.4 #1 SMP Thu Dec 15 20:31:06 MSK 2022 x86_64
User: panama (500)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/self/root/proc/3/cwd/usr/lib64/python2.4/toaiff.pyc
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/lib64/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@