From: Jb Piacentino Date: 2006-01-17T01:38:20+09:00 Subject: Re: Newbie question on music/windows Adam Shelly wrote: > This sounded like an interesting challenge - here's a simple interface > to the Windows Media Player: Wow !!! this is much more that I was expected ! Thanks millions for the clear OLE usage example. > basic usage: > player = SimpleWinMediaPlayer.new > player.file = "c:/whatever.mp3" > player.play In my case, adding this snippet directly to my code does not seem to kick anything like a WMP... It seems that player is correctly initialized (I can do 'ole_methods 'and 'name'). '@control.playItem @control.currentItem' is executed but does seem to succesfully launch a play. Any idea ? Also, is there anything special about program termination ? Will the OLE object survive ruby instance termination ? What should I write as a waiting loop ? Any thread management needed ? Thanks again, Jb -- Posted via http://www.ruby-forum.com/.