-í
ç¶<c       sA   d  Z  d Z d e f d „  ƒ  YZ d „  Z d „  Z d „  Z d S(   s   Interpret sun audio headers.s   .snds   errorc      s   t  Z RS(   N(   s   __name__s
   __module__(    (    (    s   /usr/lib/python2.2/sunaudio.pys   error s   c    sH   t  |  d ƒ d >t  |  d ƒ d >Bt  |  d ƒ d >Bt  |  d ƒ BSd S(	   s"   Convert a 4-char value to integer.i    i   i   i   i   i   i   N(   s   ords   s(   s   s(    (    s   /usr/lib/python2.2/sunaudio.pys   get_long_be	 s     c    sí   |  i d ƒ t j o t d ‚ n t |  i d ƒ ƒ } t |  i d ƒ ƒ } t |  i d ƒ ƒ } t |  i d ƒ ƒ } t |  i d ƒ ƒ } | d } | d j  o t d ‚ n | d j o |  i | ƒ } n d } | | | | | f Sd S(   s&   Read a sound header from an open file.i   s   gethdr: bad magic wordi   i    s   gethdr: bad hdr_sizes    N(   s   fps   reads   MAGICs   errors   get_long_bes   hdr_sizes	   data_sizes   encodings   sample_rates   channelss   excesss   info(   s   fps   hdr_sizes   encodings   channelss   infos   sample_rates   excesss	   data_size(    (    s   /usr/lib/python2.2/sunaudio.pys   gethdr s     
c    sˆ   t  t |  d ƒ ƒ } | \ } } } } } x  | d d j o | d  } q- Wd G|  GHd G| GHd G| GHd G| GHd G| GHd	 G| GHd
 S(   s0   Read and print the sound header of a named file.s   riÿÿÿÿs    s   File name:  s   Data size:  s   Encoding:   s   Sample rate:s   Channels:   s   Info:       N(	   s   gethdrs   opens   files   hdrs	   data_sizes   encodings   sample_rates   channelss   info(   s   files   channelss   infos   sample_rates   hdrs   encodings	   data_size(    (    s   /usr/lib/python2.2/sunaudio.pys   printhdr! s      					N(   s   __doc__s   MAGICs	   Exceptions   errors   get_long_bes   gethdrs   printhdr(   s   get_long_bes   printhdrs   MAGICs   errors   gethdr(    (    s   /usr/lib/python2.2/sunaudio.pys   ? s
   		