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