class NuWav::FactChunk

Attributes

samples_number[RW]

Public Instance Methods

parse() click to toggle source
# File lib/nu_wav/chunk.rb, line 133
def parse
  @samples_number = read_dword(0)
end
to_binary(options={}) click to toggle source
# File lib/nu_wav/chunk.rb, line 141
def to_binary(options={})
  "fact" + write_dword(4) + write_dword(@samples_number)
end
to_s() click to toggle source
# File lib/nu_wav/chunk.rb, line 137
def to_s
  "<chunk type:fact samples_number:#{@samples_number} />"
end