[mad-dev] X-Mailer: USANET web-mailer (34FM.0700.15B.01)
Fri, 26 Jan 2001 19:21:57 -0500
Ivan Mi <firstname.lastname@example.org> wrote:
> I want to use at first time minimad like a model. As far as I understand you
> map whole input (mp3) file to the memory and work with pointer to this
> But the functions defined in decoder.c like send_io, receive_io,
> receive_io_blocking, send, receive- used "int fd" like a handle to file.
> My question is where you make relation between pointer to mapped mamory and
> handle to file?
Those functions are used internally in the async high-level API to communicate
with the decoding coprocess. They are not used to read the mapped file.
The mapped memory is always referenced via struct mad_stream.