機能 #380 » macsoud.diff
core/addon/alsa/alsa.rb (working copy) | ||
---|---|---|
bg_system("aplay","-q", filename) if FileTest.exist?(filename) }
|
||
stop.call } end
|
||
if command_exist? "afplay"
|
||
Plugin::create(:alsa).add_event(:play_sound){ |filename, &stop|
|
||
SerialThread.new {
|
||
bg_system("afplay", filename) if FileTest.exist?(filename) }
|
||
stop.call } end
|
||
end
|