FormatFromName - Maple Help

# Online Help

###### All Products    Maple    MapleSim

AudioTools

 FormatFromName
 return the audio file format from a filename

 Calling Sequence FormatFromName(fileName)

Parameters

 fileName - string; the pathname of the audio file

Description

 • 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.

Examples

 > $\mathrm{with}\left(\mathrm{AudioTools}\right):$
 > $\mathrm{FormatFromName}\left("atis.wav"\right)$
 ${\mathrm{WAVE}}$ (1)
 > $\mathrm{FormatFromName}\left("fritz.jpg"\right)$

 See Also