[sc-users] [linux] playing wave-files
Sciss
contact at sciss.de
Mon Oct 8 12:21:44 PDT 2007
since i think on linux you have to install libsndfile separately
before building SC3, you should have the info program that you can
try to see if libsndfile likes your soundfile. the command line tool
is called 'sndfile-info' and should reside in the 'examples' folder
of libsndfile:
$ sndfile-info <pathToTheSoundFile>
ciao, -sciss-
Am 06.10.2007 um 15:52 schrieb Constantin Popp:
> helllo list,
>
> i'm trying to play wave-files via playbuf. aiff-files work, but not
> wave-files (32 bit, stereo).
>
> here's the error-message:
> Buffer(3, nil, nil, nil, sounds/test.wav)
> Not a valid error number (-1).
> File 'sounds/test.wav' could not be opened.
>
>
>
> here's the code (taken from the helpfile):
>
>
>
> (
>
> // read a whole sound into memory
>
> s = Server.local;
>
> // note: not *that* columbia, the first one
>
> b = Buffer.read(s,"sounds/test.wav"); // remember to free the
> buffer later.
>
> )
>
>
> SynthDef("help_PlayBuf", { arg out=0,bufnum=0;
>
> Out.ar(out,
>
> PlayBuf.ar(1, bufnum, BufRateScale.kr (bufnum))
>
> )
>
> }).play(s,[\out, 0, \bufnum, b.bufnum]);
>
>
>
>
> when playing the same sound-file with sciss's eisenkraut, i get the
> same error by the way.
>
> best,
> constantin popp
> --
> klonkkk!
> www.popup-studios.de
> _______________________________________________
> sc-users mailing list
> sc-users at create.ucsb.edu
> http://www.create.ucsb.edu/mailman/listinfo/sc-users
More information about the sc-users
mailing list