parameters: (filename)
docstring: Recognize sound headers.
docstring_summary: Recognize sound headers.
docstring_tokens: Recognize sound headers .
function: def whathdr(filename):
      """Recognize sound headers."""
      with open(filename, 'rb') as f:
          h = f.read(512)
          for tf in tests:
              res = tf(h, f)
              if res:
                  return SndHeaders(*res)
          return None
function_tokens: def whathdr ( filename ) : with open ( filename , 'rb' ) as f : h = f . read ( 512 ) for tf in tests : res = tf ( h , f ) if res : return SndHeaders ( * res ) return None