Module: ALSA::Native

Extended by:
FFI::Library
Defined in:
lib/alsa/native.rb

Class Method Summary collapse

Class Method Details

.error_code?(response) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/alsa/native.rb', line 8

def self.error_code?(response)
  response and response < 0
end