lör 2008-05-03 klockan 10:50 +0200 skrev zmoelnig_at_iem.at:
> Quoting AlgoMantra <algomantra_at_gmail.com>:
>
> >>
> >> Operating systems provide various interfaces (API) to pass buffers of
> >> samples between the userspace program and the soundcard driver -- on Linux
> >> this is usually ALSA or OSS.
> >>
> >
> > So I have ALSA on my box. And I want to talk to my sound card through ALSA(
> > do I have an option?), but in the command line or a shell script.
>
> in unix everything is a file, even your soundcard output.
> so just send the "numbers" (in binary that is) to the correct file.
>
> like that:
> # cat /dev/hda > /dev/dsp
>
> agreed, it is not the most creative example; i like this one better:
> # find /usr/src/linux-headers-2.6.24-16 -type f -exec cat '{}' \; > /dev/dsp
How would you do if you wanted to do the same on say.. the screen (ie,
VGA- or TV-out)?
Gasten
Received on Sat May 03 2008 - 15:02:30 BST