Class: FSR::App::Playback
- Inherits:
-
Application
- Object
- Application
- FSR::App::Playback
- Defined in:
- lib/fsr/app/playback.rb
Instance Attribute Summary (collapse)
-
- (Object) wavfile
readonly
Returns the value of attribute wavfile.
Instance Method Summary (collapse)
- - (Object) arguments
-
- (Playback) initialize(wavfile)
constructor
A new instance of Playback.
- - (Object) sendmsg
Methods inherited from Application
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 |