I'm assuming you use Gentoo since that's what your profile says, so here are my directions:
1) Copy all of the songs you intend to burn into a single directory. (Replace 'username' with your username.)
Code:
$ cd /home/username/
$ mkdir burn-this
$ cd burn-this
$ cp /path/to/songs/*.wma .
2) Copy this script into a file named 'wma2wav' in your /usr/bin/ directory.
Code:
#!/bin/bash
#
# wma to wav
function wma2wav () {
if [ ! -f "$1" ]; then
echo "File $1 not found!"
else
wav=`ls "$1" | sed -e 's/.wma/.wav/' | tr -d "*"`
mplayer -ao pcm "${1%%.[Ww][Mm][Aa]}.wav" "$1" &&
mv audiodump.wav "$wav" && unset wav &&
fi
}
# Convert all wma files in directory
if [ $# -eq 1 -a -d "$1" ]; then
for file in $1/*.[Ww][Mm][Aa]; do
wma2wav "$file"
done
exit
fi
# One or more wma files were given
for file in $*; do
wma2wav "$file"
done
# Not enough information
if [ $# -lt 1 ]; then
echo
echo "Usage: wma2wav myfile.wma"
echo " wma2wav /directory/containing/wma/files"
echo " wma2wav myfile.wma myfile2.wma myfile3.wma"
# You have to use quotations for the arguement below.
# Failure to do so will result in only one file being
# converted. Namely, the first one it comes across...
echo ' wma2wav "*.wma"'
echo
echo "For converting .wma's that have spaces in the"
echo 'name, use the directory option OR "*.wma"'
echo
exit
fi
# Finished with script
exit
Then:
Code:
$ chmod +x /usr/bin/wma2wav
$ wma2wav /home/username/burn-this
$ ls -lh /home/username/burn-this
Make certain the CD you are burning can handle the total size displayed at the top of the list.
3) Finally use whichever burning method you prefer. I would use this (be sure to change the 'dev=' if you use this):
Code:
cdrecord dev=ATA:0,0,0 -audio /home/username/burn-this/*.wav
4) Once finished just remove the 'burn-this' directory and call it good. If you have any issues in the meantime, you'll need to figure them out on your own.
Enjoy!
- Blue Fire