I need to simulate the process of recording an audio file, using an existing recording.
I'm running ubuntu 8.10 and had thought this would be quite simple but it seems now to be rather not so simple.
My 'concept' of what I want to do is,
$ cat myaudio.wav > /dev/mic
There is another program listening/waiting for the input.
Edit: Maybe it isn't clear from the way I explained this, but I want to basically spoof the
microphone input by streaming a pre-recorded soundfile into the microphone device.
I can do
$ cat /dev/dsp > myfile.au
to capture the raw input, and
$ cat myfile.au > /dev/dsp
to stream recorded input to my speakers, so I'm a bit confused as to why I can't do something analogous with the microphone/recording function? I still know next to nothing about low level sound stuff on linux but it seems odd that this isn't possible.