Class: SDL::AudioSpec

Inherits:
NiceFFI::Struct
  • Object
show all
Defined in:
lib/ruby-sdl-ffi/sdl/audio.rb

Instance Method Summary collapse

Instance Method Details

#callbackObject


52
53
54
# File 'lib/ruby-sdl-ffi/sdl/audio.rb', line 52

def callback
  @callback
end

#callback=(cb) ⇒ Object


47
48
49
50
# File 'lib/ruby-sdl-ffi/sdl/audio.rb', line 47

def callback=(cb)
  @callback = cb
  self[:callback] = @callback
end