Author |
Message |
ultrasine

Joined: Aug 31, 2006 Posts: 16 Location: Europe
|
Posted: Thu Aug 31, 2006 2:38 am Post subject:
Chuck on Linux > LIBSND errors Subject description: Problems playing wav files |
 |
|
Hi All,
I'm trying to get chuck working fully on my RHEL machine. I can get everything working apart from playing audio files (wavs), example script:
sndbuf buf => dac;
"/tmp/1.wav" => buf.read;
while( true )
{
0 => buf.pos;
std.rand2f(.2,.9) => buf.gain;
std.rand2f(.5,1.5) => buf.rate;
100::ms => now;
}
Initially the problem was with the libsndfile.so file. I downloaded and recompiled this. Then edited the makfile.oss to uncomment some lines and reinstalled chuck.
But now I get the following when I run the script:
[chuck](VM): sporking incoming shred: 1 (buf1.ck)...
[chuck](via sndbuf): sndfile error '3' opening '/tmp/1.wav'...
[chuck](via sndbuf): (reason: Supported file format but file is malformed.)
The wav file plays in other apps - so I'm abit lost.
Some questions:
1) I am using 'make linux-oss' - how do I know which sound systems I have installed?
2) Is my wav file malformed or something else is not setup correctly?
If any of you guys are using linux and overcome the above problems I'd appreciate some guidance. Chuck seems to rock and would like to experiment with it.
Cheers,
UM. |
|
Back to top
|
|
 |
ge

Joined: Aug 13, 2006 Posts: 108 Location: Palo Alto, CA
|
Posted: Thu Aug 31, 2006 2:15 pm Post subject:
Re: Chuck on Linux > LIBSND errors Subject description: Problems playing wav files |
 |
|
ultrasine wrote: | I'm trying to get chuck working fully on my RHEL machine. I can get everything working apart from playing audio files (wavs) |
Hi ultrasine and welcome!
Quote: | 1) I am using 'make linux-oss' - how do I know which sound systems I have installed? |
Good question. Hmm, I don't know what the definitive way is of doing this. Anyone?
Quote: | 2) Is my wav file malformed or something else is not setup correctly? |
It's unlikely, but wav files are notoriously inconsistent in their header. Try running the otf_* files in the examples directory (for example otf_01.ck). The current directory should be the same as the .ck files when you run chuck. Do you get any sound this way? Any errors? |
|
Back to top
|
|
 |
ultrasine

Joined: Aug 31, 2006 Posts: 16 Location: Europe
|
Posted: Fri Sep 01, 2006 1:19 am Post subject:
Re: Chuck on Linux > LIBSND errors Subject description: Problems playing wav files |
 |
|
Thanks Man! I used the wav files that came with chuck and the script works! I got myself a chuck on steroids now! kinda chuck norris!
I could slap the dodgy star trek wavs I downloaded - bah! |
|
Back to top
|
|
 |
ge

Joined: Aug 13, 2006 Posts: 108 Location: Palo Alto, CA
|
Posted: Fri Sep 01, 2006 1:43 am Post subject:
Re: Chuck on Linux > LIBSND errors Subject description: Problems playing wav files |
 |
|
ultrasine wrote: | Thanks Man! I used the wav files that came with chuck and the script works! I got myself a chuck on steroids now! kinda chuck norris! |
Cool dude! Steroids rock!
chuck norris can generate sounds in chuck without advancing time.
Quote: | I could slap the dodgy star trek wavs I downloaded - bah! |
If you want, you can also run those dodgy wav files through sox and up/down sample them while you are at it. This often fixes the wav header. |
|
Back to top
|
|
 |
ultrasine

Joined: Aug 31, 2006 Posts: 16 Location: Europe
|
Posted: Fri Sep 01, 2006 2:05 am Post subject:
Re: Chuck on Linux > LIBSND errors Subject description: Problems playing wav files |
 |
|
Dodgy wav files have been sent to the black hole. They don't deserve to be converted.
Adios amigo! |
|
Back to top
|
|
 |
|