Ć
Nö9c       sV     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     RS(   N(    (    s%   /mit/python/lib/python2.0/sunaudio.pys   error s   c    sQ   	 
  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   ss%   /mit/python/lib/python2.0/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	   data_sizes   encodings   sample_rates   channelss   excesss   infos%   /mit/python/lib/python2.0/sunaudio.pys   gethdr s   	c    są   ! " # t  t |  d   } $ | \ } } } } } % x( % | d d j o & | d  } q< W' d G|  GH( d G| GH) d G| GH* d G| GH+ d G| GH, d	 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   hdrs	   data_sizes   encodings   sample_rates   channelss   infos%   /mit/python/lib/python2.0/sunaudio.pys   printhdr! s    N(   s   __doc__s   MAGICs	   Exceptions   errors   get_long_bes   gethdrs   printhdr(    s%   /mit/python/lib/python2.0/sunaudio.pys   ? s
   	