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