[mad-dev] X-Mailer: USANET web-mailer (34FM.0700.15B.01)
Rob Leslie
rob@mars.org
Fri, 26 Jan 2001 19:21:57 -0500
Ivan Mi <ivan-mi@usa.net> 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
memory.
> 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.
--
Robert Leslie
rob@mars.org