utility : wma to mp3 converter

i found this script on web,
when i run,
i got :
-waveheader has been removed. Use -ao pcm:waveheader instead

i replaced it... now the script is like that: copy and past this in a file, then do chmod a+x wma2mp3.sh :

for i in *.wma ;
mplayer -vo null -vc dummy -af resample=44100 -ao pcm -ao pcm:waveheader "$i" && lame -m j -h --vbr-new -b 160 audiodump.wav -o "`basename "$i" .wma`.mp3";
rm -f audiodump.wav