Hi, sorry for a long initial post.
I'm trying to adapt madplay as a server, with simplified settings (always stereo, no resampling, etc). The simplest form of this server (though perhaps not the one to implement) *continuously* decodes a stream read from a named pipe. If the read of the pipe fails, it decodes silence. Another named pipe is used to check the size of the server's buffer and to cause it to be flushed (and maybe shutdown/stop the server).
This could be done by having the input callback always return data (either from the pipe or silence), never returning MAD_FLOW_STOP. But I'm wondering about ASYNC mode, and whether using it would somehow be better/similar. Having trouble figuring out how async mode works and its application.
Any comments on the best way to do this?
Secondarily, my madplay (x86 Linux,mad-0.14.2b with and without MMAP support) seems to barf after resuming from pause/stop. Just get noise (interesting noise, but not musical noise) out the audio device. Anyone else seen this behavior?
Eric.
__________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com