Class: FSR::App::Playback

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Application

#app_name, #raw, #to_s

Constructor Details

- (Playback) initialize(wavfile)

A new instance of Playback



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

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

Instance Attribute Details

- (Object) wavfile (readonly)

Returns the value of attribute wavfile



5
6
7
# File 'lib/fsr/app/playback.rb', line 5

def wavfile
  @wavfile
end

Instance Method Details

- (Object) arguments



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

def arguments
  @wavfile
end

- (Object) sendmsg



15
16
17
# File 'lib/fsr/app/playback.rb', line 15

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