Class: RbSDL2::Audio::Releaser

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

Instance Method Summary collapse

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)