Class: Ruby2D::Sound

Inherits:
Object
  • Object
show all
Defined in:
lib/or2d/patches/sound.rb

Instance Method Summary collapse

Instance Method Details

#playObject



4
5
6
7
# File 'lib/or2d/patches/sound.rb', line 4

def play
  @playing = true
  ext_play
end

#playing?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/or2d/patches/sound.rb', line 9

def playing?
  @playing
end

#stopObject



13
14
15
16
# File 'lib/or2d/patches/sound.rb', line 13

def stop
  @playing = false
  ext_stop
end