KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/lib64/python2.4/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.4/test/test_ossaudiodev.pyc
mò
‚=5Dc@sdklZeidƒdklZlZlZlZdkZdk	Z	dk
Z
dkZdkZdk
Z
dkZdkZdkZydk
lZWn9ej
o-eidjo
e
iZq×e
iZnXdZd„Zd„Zd	„Zd
„Zd„ZeƒdS((stest_supporttaudio(sverbosesfindfiles
TestFailedsTestSkippedN(sAFMT_S16_NEtlittleicCst|dƒ}ti|ƒ\}}}}}|i
ƒ}|iƒ|t
jo
dGHdSnti|dƒ}||d|fS(Ntrbs)Expect .au file with 8-bit mu-law samplesii(topentpathtfptsunaudiotgethdrtsizetenctratet	nchannelstextratreadtdatatclosetSND_FORMAT_MULAW_8taudiooptulaw2lin(RRR	RRRR
R((t-/usr/lib64/python2.4/test/test_ossaudiodev.pytread_sound_files

cCsôytidƒ}WnTtj
oH}|dtitititi	fjo
t
|‚nt|‚nX|iƒ|i
ƒ|iƒ|iƒ|iƒ|it||ƒtiƒ}dGH|i|ƒ|iƒtiƒ}d||GHdS(Ntwisplaying test sound file...selapsed time: %.1f sec(tossaudiodevRtdsptIOErrortmsgterrnotEACCEStENOENTtENODEVtEBUSYtTestSkippedt
TestFailedtbufsizet	obufcounttobuffreetgetptrtfilenot
setparameterstAFMT_S16_NERR
ttimett1twriteRRtt2(RR
tssizeRR+RR)R((Rtplay_sound_file,s$)







cCstiddf}tddf}xv||gD]\}|\}}}|i
|ƒ|jo1|i|ƒ|jo|i|ƒ|joPq.q.Wtdƒ‚|i
|||tƒ}||||fjptd||‚|i
|||tƒ}||||fjptd||‚dS(Nii@iiD¬sRunable to set audio sampling parameters: you must have really weird audio hardwaressetparameters%r: returned %r(RtAFMT_U8tconfig1R'tconfig2tconfigtfmttchannelsR
RtsetfmttspeedtRuntimeErrorR&tFalsetresulttAssertionErrortTrue(RR1R2R3R
R8R/R0((Rttest_setparametersDs
B	(cCsÑt}d}d}x¸|d|f|d|f||dfgD]Œ}|\}}}|i|||tƒ}||jp
t	d‚y(|i|||t
ƒ}t	dƒ‚Wq=tij
o}dGHq=Xq=WdS(	NiD¬ii,iûÿÿÿiÎÿÿÿs7setparameters: unexpectedly got requested configurations%setparameters: expected OSSAudioErrors,setparameters: got OSSAudioError as expected(R'R2R
R3R1RR&R7R8R9R:Rt
OSSAudioErrorterr(RR=R2R3R
R8R1((Rttest_bad_setparametersas+cCs`ttdƒƒ\}}}}t||||ƒtidƒ}zt
|ƒWd|iƒXdS(Nsaudiotest.auR(RtfindfileRR
R,RR-RRRR;R(RRR
RR,((Rttestzs(R@ttest_supporttrequiresttest.test_supporttverboseR?R RRtfcntlRtostsystselectRR(RR'tImportErrort	byteordertAFMT_S16_LEtAFMT_S16_BERRR-R;R>(RAR-R>RDRRGRHR?RR@RRRERR;RR R'RR(RF((Rt?s0

									
					

Anon7 - 2021