config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/audiodev.pyc

łň
h”Rc@sdZddgZdefd„ƒYZddd„ƒYZdd
d„ƒYZd„Zdd	„Ze	d
joeƒndS(sGClasses for manipulating audio devices (currently only for Sun and SGI)terrortAudioDevcBseZRS((t__name__t
__module__(((s$/usr/local/lib/python2.5/audiodev.pyRstPlay_Audio_sgicBsˆeZdZd
ZZZd„Zd„Zd„Z	d„Z
d„Zd„Zd„Z
d„Zd	„Zd
„Zd„Zd„ZRS(ic	CsĐddk}d|ifd|ifd|ifd|ifd|ifd|ifd|ifg|_d	|i	fd
|i
fd|ifg|_d	|i
fd
|ifd|ifg|_d	|_dS(
Ni˙˙˙˙i€ťiDŹi}i"Vi€>i+i@iiii(tALt
RATE_48000t
RATE_44100t
RATE_32000t
RATE_22050t
RATE_16000t
RATE_11025t	RATE_8000t
frameratelisttMONOtSTEREOtQUADROt
nchannelslisttSAMPLE_8t	SAMPLE_16t	SAMPLE_24t
sampwidthlisttclassinited(tselfR((s$/usr/local/lib/python2.5/audiodev.pyt	initclassscCs‹ddk}ddk}|ip|iƒng|_|idg|_|iƒ|_d|_	d|_
d|_d|_
d|_dS(Ni˙˙˙˙i(talRRRt	oldparamstOUTPUT_RATEtparamst	newconfigtconfigtinited_outratetinited_widthtinited_nchannelstNonet	convertertport(RRR((s$/usr/local/lib/python2.5/audiodev.pyt__init__(s
						cCsa|io|iƒn|io;ddk}ddk}|i|i|iƒg|_ndS(Ni˙˙˙˙(R$tstopRRRt	setparamstDEFAULT_DEVICE(RRR((s$/usr/local/lib/python2.5/audiodev.pyt__del__6s

cCsW|ipdSnddk}x(|iiƒdjo|idƒq!W|iƒdS(Ni˙˙˙˙igš™™™™™š?(R$ttimet	getfilledtsleepR&(RR*((s$/usr/local/lib/python2.5/audiodev.pytwait>s
cCsm|io|iiƒd|_n|io;ddk}ddk}|i|i|iƒg|_ndS(Ni˙˙˙˙(R$t	closeportR"RRRR'R((RRR((s$/usr/local/lib/python2.5/audiodev.pyR&Fs



cCsOxH|iD]4\}}||jo||id<d|_Pq
q
Wtd‚dS(Nisbad output rate(R
RRR(Rtratetrawtcooked((s$/usr/local/lib/python2.5/audiodev.pyt
setoutrateOs


		cCs—x|iD]7\}}||jo|ii|ƒd|_Pq
q
W|djo8ddk}d|_|ii|iƒ|i|_n
td‚dS(Niii˙˙˙˙sbad sample width(	RRtsetwidthR RRtulaw2linR#R(RtwidthR0R1R((s$/usr/local/lib/python2.5/audiodev.pytsetsampwidthXs

		
	cCsRxK|iD]7\}}||jo|ii|ƒd|_Pq
q
Wtd‚dS(Nisbad # of channels(RRtsetchannelsR!R(Rt	nchannelsR0R1((s$/usr/local/lib/python2.5/audiodev.pytsetnchannelsgs

		cCsĚ|io|ip
td‚n|ippddk}ddk}|idd|iƒ|_|i|_	|i
|i|i	ƒ|i|i|iƒn|i
o|i
|ƒ}n|ii|ƒdS(Nsparams not specifiedi˙˙˙˙tPythontw(RR!RR$RRtopenportRRRt	getparamsR(R'R#t
writesamps(RtdataRR((s$/usr/local/lib/python2.5/audiodev.pytwriteframesps



cCs#|io|iiƒSndSdS(Ni(R$R+(R((s$/usr/local/lib/python2.5/audiodev.pyR+}s
cCs,|io|iiƒSn|iiƒSdS(N(R$tgetfillableRtgetqueuesize(R((s$/usr/local/lib/python2.5/audiodev.pyRAƒs
cCsddk}|i|dƒS(Ni˙˙˙˙i(taudioopR4(RR?RC((s$/usr/local/lib/python2.5/audiodev.pyR4ŒsN(RRRR"R
RRRR%R)R-R&R2R6R9R@R+RAR4(((s$/usr/local/lib/python2.5/audiodev.pyRs												
			tPlay_Audio_suncBsYeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
RS(	cCsLd|_d|_d|_d|_d|_d|_d|_d|_dS(Ni(	toutratet	sampwidthR8RR R!R"R#R$(R((s$/usr/local/lib/python2.5/audiodev.pyR%”s								cCs|iƒdS(N(R&(R((s$/usr/local/lib/python2.5/audiodev.pyR)ŸscCs||_d|_dS(Ni(RER(RR/((s$/usr/local/lib/python2.5/audiodev.pyR2˘s	cCs||_d|_dS(Ni(RFR (RR5((s$/usr/local/lib/python2.5/audiodev.pyR6Śs	cCs||_d|_dS(Ni(R8R!(RR8((s$/usr/local/lib/python2.5/audiodev.pyR9Şs	cCs|io|io|ip
td‚n|ipŞddk}ddk}|idƒ|_|iiƒ}|i	|_
|i|_|i
djod|_|i|_qßd|i
|_|i|_|ii|ƒn|io|i|ƒ}n|ii|ƒdS(Nsparams not specifiedi˙˙˙˙R;ii(RR R!RR$tsunaudiodevtSUNAUDIODEVtopentgetinfoREt
o_sample_rateR8t
o_channelsRFto_precisiont
ENCODING_ULAWt
o_encodingtENCODING_LINEARtsetinfoR#twrite(RR?RGRHtinfo((s$/usr/local/lib/python2.5/audiodev.pyR@Žs"

	
cCs-|ipdSn|iiƒ|iƒdS(N(R$tdrainR&(R((s$/usr/local/lib/python2.5/audiodev.pyR-Ăs

cCs5|io'|iiƒ|iiƒd|_ndS(N(R$tflushtcloseR"(R((s$/usr/local/lib/python2.5/audiodev.pyR&És


cCs#|io|iiƒSndSdS(Ni(R$t	obufcount(R((s$/usr/local/lib/python2.5/audiodev.pyR+Ďs
(RRR%R)R2R6R9R@R-R&R+(((s$/usr/local/lib/python2.5/audiodev.pyRDs								cCs—yddk}Wnytj
omyddk}tƒSWq“tj
o@yddk}Wntj
otd‚q‡X|iƒSq“Xn	XtƒSdS(Ni˙˙˙˙sno audio device(RtImportErrorRGRDt	Audio_macRtPlay_Audio_macR(RRGRY((s$/usr/local/lib/python2.5/audiodev.pyRŮscCsddk}|ido|id}nd}ddk}|i|dƒ}|G|iƒGHtƒ}|i|iƒƒ|i|i	ƒƒ|i
|iƒƒ|iƒ|i	ƒ|iƒ}x6|i|ƒ}|pPnt
|ƒGH|i|ƒqĂ|iƒdS(Ni˙˙˙˙isf:just samples:just.aiftr(tsystargvtaifcRIR=RR2tgetframerateR6tgetsampwidthR9tgetnchannelst
readframestlenR@R-(tfnR\R^taftptBUFSIZR?((s$/usr/local/lib/python2.5/audiodev.pyttestës&	 t__main__N(((
t__doc__t__all__t	ExceptionRRRDRR"RhR(((s$/usr/local/lib/python2.5/audiodev.pys<module>sˆI	


Man Man