From: Gustavo S. B. <gu...@gs...> - 2004-07-13 01:13:31
|
Hello, I've commited a new input plugin: mplayer. It can use data exported by mplayer audio filter "export" (mplayer -af export). After 3 commits (sorry! I'm really distracted today) it's stable. I also did small changes to esd and alsa. The focus was to ensure pointers were not null and to use visual_log() instead of fprintf(). Any comments? PS: There is a way to get input plugin parameters? I'll need that. Here is the first revision with a bit more explanation: revision 1.1 date: 2004/07/12 23:51:12; author: gsbarbieri; state: Exp; Added mplayer input plugin. Background: Mplayer has an export filter which export it's buffer to a file using mmap(). TODO: * Implement option to change shared file. Current implementation uses default mplayer value (~/.mplayer/mplayer-af_export) * Support different number of channels (current is fixed to 2), different buffer size (current is 512 samples) and different format (current is 16bits signed). BUGS: * Some mplayer audio output system changes the rate mplayer calls its export filter, leading to low update rate. Know problematic output system: esd. Know to work right: alsa, oss. This is not a big issue since you can use libvisual own esd input plugin and get it right. NOTE: This is a mplayer bug. ============================================================================= -- Gustavo Sverzut Barbieri --------------------------------------- Engenharia de Computacao 2001 - UNICAMP GPSL - Grupo Pro Software Livre Cell..: +55 (19) 9165 8010 Jabber: gsb...@ja... ICQ#: 17249123 GPG: 0xB640E1A2 @ wwwkeys.pgp.net |