tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
M\¬Qc@sddZddlmZedddƒ[dZdefd„ƒYZd    „Zd
„Zd „Zd S( sInterpret sun audio headers.iÿÿÿÿ(twarnpy3ksPthe sunaudio module has been removed in Python 3.0; use the sunau module insteadt
stacklevelis.sndterrorcBseZRS((t__name__t
__module__(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/sunaudio.pyR
scCsDt|dƒd>t|dƒd>Bt|dƒd>Bt|dƒBS(s"Convert a 4-char value to integer.iiiiiii(tord(ts((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/sunaudio.pyt get_long_bescCsã|jdƒtkr!td‚nt|jdƒƒ}t|jdƒƒ}t|jdƒƒ}t|jdƒƒ}t|jdƒƒ}|d}|dkr¬td‚n|dkrÊ|j|ƒ}nd}|||||fS(s&Read a sound header from an open file.isgethdr: bad magic wordiisgethdr: bad hdr_sizet(treadtMAGICRR(tfpthdr_sizet    data_sizetencodingt sample_ratetchannelstexcesstinfo((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/sunaudio.pytgethdrs 
   cCs‹tt|dƒƒ}|\}}}}}x|ddkrJ|d }q-WdG|GHdG|GHdG|GHdG|GHdG|GHd    Gt|ƒGHd
S( s0Read and print the sound header of a named file.triÿÿÿÿts File name:  s Data size:  s Encoding:   s Sample rate:s Channels:   s Info:       N(Rtopentrepr(tfilethdrR RRRR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/sunaudio.pytprinthdr&s                    N(    t__doc__twarningsRR
t    ExceptionRRRR(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/sunaudio.pyt<module>s