Hello,...
i wish to use /dev/video (or /dev/dsp) as a stream and work with it:
for the basic i wish only to get hold of data and manipulate it
i tried the next :
Code:
include <stdio.h>
int main(int argc,char **argv)
{
fclose(stdin);
fopen("/dev/dsp","r");
while(1)
{
putchar(getchar());
}
fclose(stdin);
return 0;
}
i wish to "see" the what is sent to the audio transfer (or any other).
the problem is that i get all the time the same character (i guess it is 0).
in the end i wish to be able to copy a stream (audio and video) and transfer and transfer it over the network to other pc and there to the correct devices :
pc1/dev/video1 -> pc2/dev/video1
pc1/dev/dsp -> pc2/dev/video1