AudioTools - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Programming : Audio Processing : AudioTools/FormatFromName

AudioTools

 FormatFromName
 returns 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

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam