Well, search for some streaming recorder or such... You have to preload something replacing writing to /dev/dsp with loging. I've tuned the following for myself:
http://bigtip.narod.ru/sourcetip/dumper_c
- a rewrite of some other program to do similar thing. Read the source, and export LD_PRELOAD showing to it (containing full path of shared library resulting from compilation with --shared) before running player.
Or search for ready, easy to use solution.