Class: Device::Audio

Inherits:
Object
  • Object
show all
Defined in:
lib/device/audio.rb

Class Method Summary collapse

Class Method Details

.adapterObject



4
5
6
# File 'lib/device/audio.rb', line 4

def self.adapter
  Device.adapter::Audio
end

.beep(tone, miliseconds) ⇒ nil

Play beep

Parameters:

  • tone (Fixnum)

    0 to 6

  • miliseconds (Fixnum)

    beep duration in miliseconds

Returns:

  • (nil)


13
14
15
# File 'lib/device/audio.rb', line 13

def self.beep(tone, miliseconds)
  adapter.beep(tone, miliseconds)
end