MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / whathdr

Function whathdr

tools/python-3.11.9-amd64/Lib/sndhdr.py:62–70  ·  view source on GitHub ↗

Recognize sound headers.

(filename)

Source from the content-addressed store, hash-verified

60
61
62def whathdr(filename):
63 """Recognize sound headers."""
64 with open(filename, 'rb') as f:
65 h = f.read(512)
66 for tf in tests:
67 res = tf(h, f)
68 if res:
69 return SndHeaders(*res)
70 return None
71
72
73#-----------------------------------#

Callers 1

whatFunction · 0.85

Calls 2

openFunction · 0.70
readMethod · 0.45

Tested by

no test coverage detected