403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.217.37
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python27/lib64/python2.7/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python27/lib64/python2.7/test/test_linuxaudiodev.pyc
�
�q2_c@s�ddlmZejd�ddlmZmZddlZddlZddlZddl	Z	ej
dde�Zej
dde�Z
dZd	e	jfd
��YZd�Zedkr�e�ndS(
i����(ttest_supporttaudio(tfindfiletrun_unittestNt
linuxaudiodevt
deprecatedtsunaudioitLinuxAudioDevTestscBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCstjd�|_dS(Ntw(Rtopentdev(tself((s</opt/alt/python27/lib64/python2.7/test/test_linuxaudiodev.pytsetUpscCs|jj�dS(N(R
tclose(R((s</opt/alt/python27/lib64/python2.7/test/test_linuxaudiodev.pyttearDownscCsE|jj�|jj�|jj�|jj�|jj�dS(N(R
tbufsizet	obufcounttobuffreetgetptrtfileno(R((s</opt/alt/python27/lib64/python2.7/test/test_linuxaudiodev.pyttest_methodss




c
Cs�td�}t|d�}tj|�\}}}}}|j�}|j�|tkrk|jd�ntj	|d�}t
jdkr�tj
}	n	tj}	|jj|d||	�|jj|�|jj�dS(Nsaudiotest.autrs)Expect .au file with 8-bit mu-law samplesitlittlei(RR	RtgethdrtreadR
tSND_FORMAT_MULAW_8tfailtaudiooptulaw2lintsyst	byteorderRtAFMT_S16_LEtAFMT_S16_BER
t
setparameterstwritetflush(
Rtpathtfptsizetenctratet	nchannelstextratdatatfmt((s</opt/alt/python27/lib64/python2.7/test/test_linuxaudiodev.pyttest_play_sound_file s
	cCs�d}tj}d}d}y|jjd|||�Wn*tk
rd}|j|jdd�nXy|jj|d||�Wn*tk
r�}|j|jdd�nXy|jj||d	|�Wn*tk
r�}|j|jdd
�nXy|jj|||d�Wn*tk
rB}|j|jdd�nXy |jj|||tj�Wn*tk
r�}|j|jdd
�nXy|jj|d||�Wn*tk
r�}|j|jdd�nXdS(Nii@ii����isexpected rate >= 0, not -1i����s!expected sample size >= 0, not -2isnchannels must be 1 or 2, not 3i�sunknown audio encoding: 177sNfor linear unsigned 16-bit little-endian audio, expected sample size 16, not 8is?for linear unsigned 8-bit audio, expected sample size 8, not 16(RtAFMT_U8R
R!t
ValueErrortassertEqualtargstAFMT_U16_LE(RR&R,R(R)terr((s</opt/alt/python27/lib64/python2.7/test/test_linuxaudiodev.pyttest_errors8s8	 (t__name__t
__module__RRRR-R4(((s</opt/alt/python27/lib64/python2.7/test/test_linuxaudiodev.pyRs
				cCs�ytjd�}WnVtjk
rk}|jdtjtjtjtjfkret	j
|��n�nX|j�tt
�dS(NRi(RR	terrorR1terrnotEACCEStENOENTtENODEVtEBUSYtunittesttSkipTestR
RR(tdsptmsg((s</opt/alt/python27/lib64/python2.7/test/test_linuxaudiodev.pyt	test_mainXs+
t__main__(ttestRtrequiresttest.test_supportRRR8RRR=t
import_moduletTrueRRRtTestCaseRRAR5(((s</opt/alt/python27/lib64/python2.7/test/test_linuxaudiodev.pyt<module>s
H	


Youez - 2016 - github.com/yon3zu
LinuXploit