On Friday 30 July 2004 11:29, Tilman Sauerbeck wrote: > Sean O'Dell <sean / celsoft.com> [2004-07-30 16:42]: > > On Friday 30 July 2004 07:06, Tilman Sauerbeck wrote: > > > [C code] > > > It's pretty straight-forward and the comment should explain it all :) > > > > Show me a couple more things. Show me the Ruby code you call, and tell > > me what object is getting collected and where it happens. Your original > > Ruby code example was pseudocode and I can't tell what maps to what. > > Anyway, here's the script: > > class Basic > def initialize > @xc = XmmsClient::XmmsClient::new > @xc.connect > @xc.setup_with_ecore # attach to the main loop, see below > > @xc.playlist_current_id.notifier do |r| > puts "now playing #{r.uint}" # gets the ID from a result > r.restart # call the block the next time the event gets > # fired > GC.start > end > > @xc.playback_playtime.notifier do |r| > r.restart > GC.start > end > end > end Sorry, hopefully Guy can help you. I can't match up any of those calls to the C code you provided. Maybe it's my eyes, but I see only vague similarities like the letters XMMS appearing in both places, but I don't see Ruby code that matches up with your C code. Sean O'Dell