Class: Awaaz::Extensions::Soundfile::SF_INFO

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/awaaz/extensions/soundfile.rb

Overview

Structure containing metadata about an audio file.

Mirrors the C struct ‘SF_INFO` from libsndfile.

Instance Attribute Summary collapse

Instance Attribute Details

#channelsInteger



44
45
46
47
48
49
50
51
# File 'lib/awaaz/extensions/soundfile.rb', line 44

class SF_INFO < FFI::Struct
  layout :frames, :long_long,
         :samplerate, :int,
         :channels,   :int,
         :format,     :int,
         :sections,   :int,
         :seekable,   :int
end

#formatInteger



44
45
46
47
48
49
50
51
# File 'lib/awaaz/extensions/soundfile.rb', line 44

class SF_INFO < FFI::Struct
  layout :frames, :long_long,
         :samplerate, :int,
         :channels,   :int,
         :format,     :int,
         :sections,   :int,
         :seekable,   :int
end

#framesInteger



44
45
46
47
48
49
50
51
# File 'lib/awaaz/extensions/soundfile.rb', line 44

class SF_INFO < FFI::Struct
  layout :frames, :long_long,
         :samplerate, :int,
         :channels,   :int,
         :format,     :int,
         :sections,   :int,
         :seekable,   :int
end

#samplerateInteger



44
45
46
47
48
49
50
51
# File 'lib/awaaz/extensions/soundfile.rb', line 44

class SF_INFO < FFI::Struct
  layout :frames, :long_long,
         :samplerate, :int,
         :channels,   :int,
         :format,     :int,
         :sections,   :int,
         :seekable,   :int
end

#sectionsInteger



44
45
46
47
48
49
50
51
# File 'lib/awaaz/extensions/soundfile.rb', line 44

class SF_INFO < FFI::Struct
  layout :frames, :long_long,
         :samplerate, :int,
         :channels,   :int,
         :format,     :int,
         :sections,   :int,
         :seekable,   :int
end

#seekableInteger



44
45
46
47
48
49
50
51
# File 'lib/awaaz/extensions/soundfile.rb', line 44

class SF_INFO < FFI::Struct
  layout :frames, :long_long,
         :samplerate, :int,
         :channels,   :int,
         :format,     :int,
         :sections,   :int,
         :seekable,   :int
end