Problem if soundfile extension is "midi"
On Anonymous there are some instances of invocation of this template where the 2nd parameter (soundfilename) has the extension midi (four characters), and the code only works properly for extensions with three characters (eg. mid and mp3. Probably the best way to cure this is to examine the last four characters of the soundfilename (instead of the last three) and proceed according to whether they are ".mid", "midi", or ".mp3". – Chucktalk Giffen♫ 12:46, 8 September 2010 (UTC)