AudioTools
FormatFromName
return the audio file format from a filename
Calling Sequence
Parameters
Description
Examples
FormatFromName(fileName)
fileName
-
string; the pathname of the audio file
The FormatFromName command examines the passed fileName and returns the audio file format based on the extension. It returns either a member of AudioTools[Formats], or NULL if it was unable to guess.
with⁡AudioTools:
FormatFromName⁡atis.wav
WAVE
FormatFromName⁡fritz.jpg
See Also
Array
AudioTools[Formats]
AudioTools[Read]
AudioTools[Write]
FileTools[Extension]
Matrix
Vector
Download Help Document