From: Dave Baldwin Date: 2005-03-22T06:20:49+09:00 Subject: Re: FMOD or other sound libraries...anyone? On 21 Mar 2005, at 15:55, Jamis Buck wrote: > > I, too, would be very interested in Ruby bindings to a sound lib for > OSX. Would ruby-cocoa work? Anyone know? > > - Jamis Yes, one of the sample programs is: require 'osx/cocoa' snd_files = if ARGV.size == 0 then `ls /System/Library/Sounds/*.aiff`.split else ARGV end OSX.ruby_thread_switcher_start(0.001, 0.1) Thread.start { OSX::NSRunLoop.currentRunLoop.run } snd_files.each do |path| snd = OSX::NSSound.alloc.initWithContentsOfFile_byReference(path, true) snd.play sleep 0.25 while snd.isPlaying? end Don't know if this give the OP what he wants. Dave.