From: Andy Korth Date: 2007-09-22T15:38:05+09:00 Subject: Re: Playing Wav file in Ruby tommylil@gmail.com wrote: > On Sep 22, 4:18 am, Andy Korth wrote: >> I've tried invoking applications that would play a sound through the >> system command, but none of them have worked very well. > > You do get it to play that way, right? I ran into the same situation a > few weeks ago, ending up doing the very same thing u did, calling an > external app. Simply using `playsound #{file}` will do. But if there > is any libraries making it possible to do it natively from Ruby > (without having to start writing one ourselves), I would love to hear > about it. > > Tommy Ah yes, sorry for lack of clarification. Playsound is part of SDL, but it opens an application, puts it in the dock, plays the sound and exits. It's very awkward for running inside a script. I suspect I will have to look into SDL bindings... very overkill perhaps. Thanks Konrad and Tommy for the quick replies. -Andy -- Posted via http://www.ruby-forum.com/.