Class: FSR::App::Playback

Inherits:
Application show all
Includes:
FileMethods
Defined in:
lib/fsr/app/playback.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from FileMethods

#test_files

Methods inherited from Application

#app_name, #raw, #to_s

Constructor Details

#initialize(wavfile) ⇒ Playback

Returns a new instance of Playback.



11
12
13
14
15
# File 'lib/fsr/app/playback.rb', line 11

def initialize(wavfile)
  # wav file you wish to play, full path
  test_files wavfile
  @wavfile = wavfile
end

Instance Attribute Details

#wavfileObject (readonly)

Returns the value of attribute wavfile.



9
10
11
# File 'lib/fsr/app/playback.rb', line 9

def wavfile
  @wavfile
end

Instance Method Details

#argumentsObject



17
18
19
# File 'lib/fsr/app/playback.rb', line 17

def arguments
  @wavfile
end

#sendmsgObject



21
22
23
# File 'lib/fsr/app/playback.rb', line 21

def sendmsg
  "call-command: execute\nexecute-app-name: %s\nexecute-app-arg: %s\nevent-lock:true\n\n" % [app_name, arguments]
end