A quick and dirty (but far from foolproof) method would be to look at the first few bytes of the file – if it contains the string “ID3” you could be reasonably sure it’s an MP3, or if it has the string “RIFF” you could be reasonably sure it’s a wave audio file.
Statistics: Posted by Gronky — 14 Jun 2024 06:36