Sha256: 61cd535eee504dcdd0a0a92678159b67af189ce9683ec078a3e1116ee20981c8
Contents?: true
Size: 561 Bytes
Versions: 34
Compression:
Stored size: 561 Bytes
Contents
require "fsr/app" require 'fsr/file_methods' module FSR module App class Playback < Application include ::FSR::App::FileMethods attr_reader :wavfile def initialize(wavfile) # wav file you wish to play, full path test_files wavfile @wavfile = wavfile end def arguments @wavfile end def sendmsg "call-command: execute\nexecute-app-name: %s\nexecute-app-arg: %s\nevent-lock:true\n\n" % [app_name, arguments] end end register(:playback, Playback) end end
Version data entries
34 entries across 34 versions & 1 rubygems