electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
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
OSC_Address buffer filling up ...
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [2 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
diki



Joined: May 29, 2008
Posts: 4
Location: germany

PostPosted: Thu May 29, 2008 6:32 pm    Post subject: OSC_Address buffer filling up ... Reply with quote  Mark this post and the followings unread

i'm sorry if this is a newbie question, but my forum search did not turn up any results on the matter:

a chuck script of mine that receives a steady stream of OSC messages informs me of the following:
Code:
[chuck]:(5:INFORM): OSC_Address (/conseq/trigger) -- buffer full ( r:475 , w:474, of 512(x1) ), resizing...

with growing numbers each time this comes up. i think i've made a silly mistake in the way my OSC messages are handled, but i can't find out which one Wink

the lines responsible for receiving the osc message in question read like this:
Code:

    OscRecv oscIn;
    OscEvent oscTrig;
    OscEvent oscBPM;
    4444 => oscIn.port;
    oscIn.listen();
    oscIn.event( "/conseq/trigger","i") @=> oscTrig;
    oscIn.event( "/conseq/bpm","i") @=> oscBPM;

[...]
    // the following is sporked into a separate shred
    fun void recvTrigs() {
        while( true ){
            oscTrig => now;
            while( oscTrig.nextMsg() != 0 ){
               oscTrig.getInt() => int trigs;
                // grab 8 triggers from a single int by bitshifting
                for( 0 => int i; i < 8; ++i ){
                    (( trigs >> i )% 2 ) $ int => trigger[ i ];
                }
            }
        }
    }


i'm very grateful for any clues on the matter...

edit: from what i gather, i might need to .yield() more.
Back to top
View user's profile Send private message
diki



Joined: May 29, 2008
Posts: 4
Location: germany

PostPosted: Sat May 31, 2008 1:06 pm    Post subject: Reply with quote  Mark this post and the followings unread

nah, this is actually reproducible using the OSC_recv.ck and OSC_send.ck examples by setting the sending interval down to .01 seconds. known bug?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [2 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