From: Konrad Meyer Date: 2007-09-22T15:06:52+09:00 Subject: Re: Playing Wav file in Ruby --nextPart2546559.oAuuocu4ZO Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Quoth tommylil@gmail.com: > 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. >=20 > 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. >=20 > Tommy Any of the game libraries / SDL bindings ought to do the trick (that's as close to native as you'll find). `playsound' isn't a program on my system, so it wouldn't work for me. Find a command on your system (sorry I don't know MacOSX at all) to play it, and that'll be fine for small scripts. HTH, =2D-=20 Konrad Meyer http://konrad.sobertillnoon.com/ --nextPart2546559.oAuuocu4ZO Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBG9LD4CHB0oCiR2cwRArBkAKDQcswTErFtfXRkGIpEk6zrZB8ODwCgzXw0 45rG1V7PLc/xvojV0NLzs+A= =Uwk5 -----END PGP SIGNATURE----- --nextPart2546559.oAuuocu4ZO--