Current Path : /usr/local/lib/python2.5/test/ |
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 |
Current File : //usr/local/lib/python2.5/test/test_linuxaudiodev.pyo |
³ò h”Rc @ s× d d k l Z e i d ƒ d d k l Z l Z l Z l Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d Z d „ Z d „ Z d „ Z e ƒ d S( iÿÿÿÿ( t test_supportt audio( t verboset findfilet TestFailedt TestSkippedNi c C so t | d ƒ } t i | ƒ \ } } } } } | i ƒ } | i ƒ | t j o d GHd Sn y t i d ƒ } WnW t i j oH } | d t i t i t i t i f j o t | ‚ n t | ‚ n Xt i | d ƒ } t i d j o t i } n t i } | i ƒ | i ƒ | i ƒ | i ƒ | i ƒ | i | d | | ƒ | i | ƒ | i ƒ | i ƒ d S( Nt rs) Expect .au file with 8-bit mu-law samplest wi i t littlei ( t opent sunaudiot gethdrt readt closet SND_FORMAT_MULAW_8t linuxaudiodevt errort errnot EACCESt ENOENTt ENODEVt EBUSYR R t audioopt ulaw2lint syst byteordert AFMT_S16_LEt AFMT_S16_BEt bufsizet obufcountt obuffreet getptrt filenot setparameterst writet flush( t patht fpt sizet enct ratet nchannelst extrat datat at msgt fmt( ( s3 /usr/local/lib/python2.5/test/test_linuxaudiodev.pyt play_sound_file s4 ) c C s{ t i d ƒ } d } t i } d } d } y | i d | | | ƒ Wn t j o } | GHn Xy | i | d | | ƒ Wn t j o } | GHn Xy | i | | d | ƒ Wn t j o } | GHn Xy | i | | | d ƒ Wn t j o } | GHn Xy | i | | | t i ƒ Wn t j o } | GHn Xy | i | d | | ƒ Wn t j o } | GHn Xd S( NR i i@ i iÿÿÿÿiþÿÿÿi i± i ( R R t AFMT_U8R! t ValueErrort AFMT_U16_LE( R, R&