Class: RbSDL2::Audio::Releaser
- Inherits:
-
Object
- Object
- RbSDL2::Audio::Releaser
- Defined in:
- lib/rb_sdl2/audio/audio.rb
Instance Method Summary collapse
- #call(_id) ⇒ Object
-
#initialize(num) ⇒ Releaser
constructor
A new instance of Releaser.
Constructor Details
#initialize(num) ⇒ Releaser
Returns a new instance of Releaser.
88 |
# File 'lib/rb_sdl2/audio/audio.rb', line 88 def initialize(num) = @id = num |
Instance Method Details
#call(_id) ⇒ Object
90 |
# File 'lib/rb_sdl2/audio/audio.rb', line 90 def call(_id) = ::SDL.CloseAudioDevice(@id) |