| 32 | ---- |
| 33 | |
| 34 | == Burn mp3s onto an Audio CD == |
| 35 | |
| 36 | If you have lame installed you can burn mp3s to a CD that will play in an ordinary audio CD player with a simple script like this |
| 37 | {{{ |
| 38 | #!/bin/bash -e |
| 39 | count=0 |
| 40 | |
| 41 | for TRACK in * |
| 42 | do |
| 43 | lame --decode "$TRACK" $((++count)).wav |
| 44 | rm -f "$TRACK" |
| 45 | done |
| 46 | |
| 47 | cdrecord dev=/dev/hdc -audio -pad $(ls) |
| 48 | }}} |
| 49 | Change dev=/dev/hdc to suit your system. |
| 50 | |
| 51 | Get a copy of the tracks you want into one folder, cd into the folder, put a blank CD in the drive and then run the script |
| 52 | |
| 53 | |