[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Re: Generating files with libsndfile
From:       "Berger, Daniel" <Daniel.Berger () qwest ! com>
Date:       2006-05-31 18:59:12
Message-ID: 39AA6550E5AA554AB1456707D6E5563D0259E6AA () QTOMAE2K3M01 ! AD ! QINTRA ! COM
[Download RAW message or body]

> -----Original Message-----
> From: Alex Polite [mailto:notmyprivateemail@gmail.com] 
> Sent: Wednesday, May 31, 2006 11:54 AM
> To: ruby-talk ML
> 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)

Looks like a bug in the binding somewhere.  I recommend contacting the
author.

Regards,

Dan


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication 
in error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic