From: Alex Polite Date: 2006-06-01T02:54:23+09:00 Subject: Generating files with libsndfile I'm trying to generate sound files with the ruby wrapper around libsndfile.[1] I have no problem reading sound files as there are examples for this in the documentation. But writing is another matter. This script ================================ require 'audio' require 'audio/sndfile' sf = Audio::Soundfile.new("/tmp/anewfile.wav") silence = Audio::Sound.float(100) sf.write_float(silence) ================================ Will generate this error when run: System error. (eval):2:in `write_float': Format check failed: 0 (RuntimeError) [1] http://hans.fugal.net/src/ruby-audio/doc/ -- Alex Polite http://flosspick.org - finding the right open source