Johan Engdahl wrote: > -I have a block of PCM WAV in memory that i want to > encode, send it over a network (network part is > already done), and then decode it into a wav file > again. Is it possible to do that, using LAME?
Yes. You can use the encoder library of LAME to encode the waveform, and the decoder library of MPG123 to decode the waveform for playback (or whatever). Alternately, you could try the MAD MPEG audio decoder (http://www.mars.org/home/rob/proj/mpeg/). There will be a quality loss in every encode/decode cycle. > -If not, does anyone know how to redirect the stdin to > read from memory instead? If memory can be copied to an I/O stream, stdin can be redirected to read from that stream. One way to do this redirection is to close stdin, create or duplicate an I/O stream in its place, write the memory to the I/O stream, and read from the redirected stdin. This approach probably would only be used with separate processes. Kind regards, - John _______________________________________________ mp3encoder mailing list [EMAIL PROTECTED] http://minnie.tuhs.org/mailman/listinfo/mp3encoder
