Module: Neri::DXRubySound

Included in:
DXRuby::Sound
Defined in:
lib/neri/dxruby.rb

Instance Method Summary collapse

Instance Method Details

#new(path) ⇒ Object



24
25
26
27
28
29
# File 'lib/neri/dxruby.rb', line 24

def new(path)
  return super unless Neri.exist_in_datafile?(path)

  load_from_memory(Neri.file_read(path),
                   File.extname(path) == ".mid" ? DXRuby::TYPE_MIDI : DXRuby::TYPE_WAV)
end