[sc-users] [linux] playing wave-files

nescivi nescivi at gmail.com
Sun Oct 7 20:20:02 PDT 2007


Is the file 1 channel, like you specify in the playbuf?

Is the file readable (permissions?)
Is it in the path specified? Try typing in the full path of the file, and
not just the relative one.

sincerely,
Marije

On 10/6/07, Constantin Popp <constantin.popp at googlemail.com> wrote:
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.create.ucsb.edu/pipermail/sc-users/attachments/20071007/d409bd12/attachment.htm


More information about the sc-users mailing list