Class: Wx::Sound

Inherits:
Object
  • Object
show all
Defined in:
lib/wx/classes/sound.rb

Overview

Plays simple sounds from .wav files

Class Method Summary collapse

Class Method Details

.play(file, flags = Wx::SOUND_ASYNC) ⇒ Object

Shortcut class method, as per the wxWidgets docs, but easier to do in Ruby



6
7
8
# File 'lib/wx/classes/sound.rb', line 6

def play(file, flags = Wx::SOUND_ASYNC)
  new(file).play(flags)
end