From: <Mar...@t-...> - 2003-12-17 03:45:14
|
Hallo! Ich hab mein XMMS Plugin fertig! Es ist bereits auf den Evaluator-Schnittstellen geschrieben. Ben=F6tigt wird extra noch das XMMS-Plugin XMMS-Infopipe um an die Daten zu= =20 kommen. =46olgendes kann abgefragt werden: - Titel - Dateiname - Status (Pause, Play, usw.) - Liedanzahl in der Playlist - Aktuell gew=E4hlter Playlisteintrag - Position im Titel (als Zeit und als Sekunden) - Gesamtl=E4nge des Titels (Zeit und Sekunden) - Bitrate in bit - Kan=E4le - Samplingrate @Michael Reinelt Wie soll ich den Code einbinden (C++ Code)? In die client.c ? Und wie lad ich ihn hoch, ohne das ich etwas im CVS-Tree kaputtmache? Gr=FC=DFe Markus =2D-=20 Markus Keil Saxony, Germany |
From: Michael R. <re...@eu...> - 2003-12-17 05:21:02
|
Hi Markus, For lcd4linux-users is an english mailing list, I'm translating your=20 Mail before answering it! Markus Keil schrieb: > Ich hab mein XMMS Plugin fertig! > I finished the XMMS-Plugin! Great! > Es ist bereits auf den Evaluator-Schnittstellen geschrieben. > it's written on top of the new "evaluator"-Interface Great, too! Christmas is near, which means one or another free day for=20 me, which means I've some time for lcd4linux. > Ben=F6tigt wird extra noch das XMMS-Plugin XMMS-Infopipe um an die Date= n zu=20 > kommen. > you will need the "XMMS-Infopipe" Plugin for XMMS to get the needed=20 data out of XMMS. > @Michael Reinelt > Wie soll ich den Code einbinden (C++ Code)? > How should I integrate the Code (C++)? Uh. Good Question. No idea here. lcd4linux is normally C, no ++. Is it=20 possible to use any "wrappers"? > In die client.c ? No, definitely not. Write your own "client". btw, they have been renamed=20 to "plugins" because of the good old "who is the client and who is the=20 server?" question :-) I'd like to use a prefix "plugin_". So I'd call your file=20 "plugin_xmms.c" You have to include "client.h" to get the eval-register=20 funktions. > Und wie lad ich ihn hoch, ohne das ich etwas im CVS-Tree kaputtmache? > How should I upload it, to not distroy anything in the CVS tree? Do not upload. Run "cvs diff -u" and send me the output. If your changes=20 reside in a seperate file where the CVS doesn't know anything about,=20 send me this file as a whole. bye, Michael --=20 Michael Reinelt Tel: +43 676 3079941 Geisslergasse 4 Fax: +43 316 692343 A-8045 Graz, Austria e-mail: re...@eu... |
From: <Mar...@t-...> - 2003-12-18 08:30:56
Attachments:
plugin_xmms.c
plugin_xmms.cpp
|
> > @Michael Reinelt > > How should I integrate the Code (C++)? > > Uh. Good Question. No idea here. lcd4linux is normally C, no ++. Is it > possible to use any "wrappers"? > I have tried to convert the Sourcecode form C++ to ANSI-C, but i think my port is very buggy. :-| My first compiling of the plugin as a normal programm was succesfull, but when i run the programm i get a "Speicherzugriffsfehler". Also have i search for Wrappers on some Forums and on google, but i didn't found anything. :-( I have attached the 2 Sourcefiles One is C++ and the other my ANSI-C port. -- Markus Keil Saxony, Germany |
From: Michael R. <re...@eu...> - 2003-12-18 12:31:59
|
Hi Markus, > I have tried to convert the Sourcecode form C++ to ANSI-C, but i think my port > is very buggy. :-| > My first compiling of the plugin as a normal programm was succesfull, but when > i run the programm i get a "Speicherzugriffsfehler". Ok, I'll have a look at this. Can you provide me some sample files from /tmp/xmms-info? bye, Michael -- Michael Reinelt Tel: +43 676 3079941 Geisslergasse 4 Fax: +43 316 692343 A-8045 Graz, Austria e-mail: re...@eu... |
From: <Mar...@t-...> - 2003-12-18 15:16:14
Attachments:
xmms-info
|
Am Donnerstag 18 Dezember 2003 13:31 schrieb Michael Reinelt: > Hi Markus, > > Ok, I'll have a look at this. > > Can you provide me some sample files from /tmp/xmms-info? > > bye, Michael Here it is! -- Markus Keil Saxony, Germany |
From: Michael R. <re...@eu...> - 2003-12-19 06:35:31
|
Hi Markus, > I have tried to convert the Sourcecode form C++ to ANSI-C, but i think my port > is very buggy. :-| Well, you were right :-) I modified your code a bit, and committed it to CVS. It works, at least for me. How to test: - get latest CVS release - compile it - run 'lcd4linux -i' - at the eval prompt, enter: xmms('Title') Thanks a lot for your contribution! But I think there's a lot of 'optimization' possible for your plugin. The current major drawback is that for every access, the whole file will be read in and parsed. Question: How often does the content of /tmp/xmms-info change? (Once a second?) You should add some buffering of the key:value pairs, and add a conditional like "if the last file parse was less than one second ago, do not parse again, but use my buffered content" I also renamed client.[c|h] to plugin.[c|h] and extracted some of the basic functions to plugin_math.c and plugin_string.c I really like this new structure.... -- Michael Reinelt Tel: +43 676 3079941 Geisslergasse 4 Fax: +43 316 692343 A-8045 Graz, Austria e-mail: re...@eu... |
From: <Mar...@t-...> - 2003-12-19 19:48:12
|
Am Freitag 19 Dezember 2003 07:35 schrieb Michael Reinelt: > I modified your code a bit, and committed it to CVS. It works, at least > for me. > > How to test: > - get latest CVS release > - compile it > - run 'lcd4linux -i' > - at the eval prompt, enter: xmms('Title') > > Thanks a lot for your contribution! > Thanks for solving the Bugs!! > > Question: How often does the content of /tmp/xmms-info change? (Once a > second?) > I think its near realtime. > You should add some buffering of the key:value pairs, and add a > conditional like "if the last file parse was less than one second ago, > do not parse again, but use my buffered content" > Thats a good idea! But i will need some Time to learn some ANSI-C! > I also renamed client.[c|h] to plugin.[c|h] and extracted some of the > basic functions to plugin_math.c and plugin_string.c > > I really like this new structure.... I like it too -- Markus Keil Saxony, Germany |