/ Published in: PHP
Use unpack() to decode header information. Return duration in format mm:ss
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function wavDur($file) { $pos++; } $sec = $data[datasize]/$header[bytespersec]; } }