Menu

How to prepare STDOUT

2002-12-06
2012-09-26
  • Nobody/Anonymous

    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.

     
    • Nobody/Anonymous

      Help me please!
      How can I use STDOUT to communicate with other applications?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.