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

Constantin Popp constantin.popp at googlemail.com
Sat Oct 6 16:52:09 PDT 2007


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.create.ucsb.edu/pipermail/sc-users/attachments/20071006/e55d45bd/attachment.htm


More information about the sc-users mailing list