(filename)
Recognize sound headers.
Recognize sound headers.
Recognize sound headers .
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
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