electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » ChucK programming language
Chuck on Linux > LIBSND errors
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [5 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
ultrasine



Joined: Aug 31, 2006
Posts: 16
Location: Europe

PostPosted: Thu Aug 31, 2006 2:38 am    Post subject: Chuck on Linux > LIBSND errors
Subject description: Problems playing wav files
Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
ge



Joined: Aug 13, 2006
Posts: 105
Location: Palo Alto, CA

PostPosted: Thu Aug 31, 2006 2:15 pm    Post subject: Re: Chuck on Linux > LIBSND errors
Subject description: Problems playing wav files
Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
ultrasine



Joined: Aug 31, 2006
Posts: 16
Location: Europe

PostPosted: Fri Sep 01, 2006 1:19 am    Post subject:  Re: Chuck on Linux > LIBSND errors
Subject description: Problems playing wav files
Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Visit poster's website
ge



Joined: Aug 13, 2006
Posts: 105
Location: Palo Alto, CA

PostPosted: Fri Sep 01, 2006 1:43 am    Post subject: Re: Chuck on Linux > LIBSND errors
Subject description: Problems playing wav files
Reply with quote  Mark this post and the followings unread

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!

Mad 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
View user's profile Send private message Visit poster's website
ultrasine



Joined: Aug 31, 2006
Posts: 16
Location: Europe

PostPosted: Fri Sep 01, 2006 2:05 am    Post subject: Re: Chuck on Linux > LIBSND errors
Subject description: Problems playing wav files
Reply with quote  Mark this post and the followings unread

Dodgy wav files have been sent to the black hole. They don't deserve to be converted.

Adios amigo!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [5 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use