Hi,
I have a little problem about STDOUT. I want to send data to another program, but I dont know how to do it with STDOUT.
I made a program that records wave-data with the Windows-API and then the data must send to a mp3-encoder in realtime. I know that the LAME-encoder can receive data with STDIN.
This part of the program looks like this:
char *l="Lame.exe - l.mp3";
WinExec(l,SW_SHOW); //now LAME is a child-progress and it is prepared to receive data
fwrite(Wave.Data,Wave.size,1,STDOUT); // this is called in a loop
Does anyone know how to associate STDOUT with a child-progress?
On Web I didnt find any useful information.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have a little problem about STDOUT. I want to send data to another program, but I dont know how to do it with STDOUT.
I made a program that records wave-data with the Windows-API and then the data must send to a mp3-encoder in realtime. I know that the LAME-encoder can receive data with STDIN.
This part of the program looks like this:
char *l="Lame.exe - l.mp3";
WinExec(l,SW_SHOW); //now LAME is a child-progress and it is prepared to receive data
fwrite(Wave.Data,Wave.size,1,STDOUT); // this is called in a loop
Does anyone know how to associate STDOUT with a child-progress?
On Web I didnt find any useful information.
Help me please!
How can I use STDOUT to communicate with other applications?