unfortunately my sound card isn't supported in 40khz mode, it is an onboard card in 48khz, so whenever i get a directory of mp3 files for instance, i have to convert them to wav with mpg321 and then resample with sox.
once i am in the directory of music, i would do
Code:
mpg321 -w file.wav file.mp3
to each file individually, and then do
Code:
sox file.wav -r 48000 48k-file.wav resample
to each newly made wav file individually. i would like to have a script that converts all the mp3s to wav with mpg321 one after the other without having to retype it, and then resample them with sox one after the other, either as two separate scripts (for mpg321 and sox) or one together, whatever is easier.
this will save me a lot of time and be instructional.