[Cs-dev] bug in calculating buffer sizes
Date | 2010-05-21 18:42 |
From | Victor Lazzarini |
Subject | [Cs-dev] bug in calculating buffer sizes |
John, is it possible that your changes to allow for different in and out channel numbers have introduced a bug in the calculation of buffersizes? In rtpa.c now, the values of pabs->inParm.bufSamp_SW and pabs->outParm.bufSamp_SW are not matching anymore, raising an error. I ran 'trapped.csd' with - odac -iadc and checked the values of these and the input buffer is always 1/2 size of the output. Now because nchnls=2, I am wondering if the code is taking input nchnls as 1 by default, when it should take the value of nchnls instead. This is the reason for the reported errors with portaudio IO in both Windows and OSX. Instead of me taking a long time tracing this, I expect you would know where this is going wrong more promptly. Victor ------------------------------------------------------------------------------ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2010-05-22 18:58 |
From | john ffitch |
Subject | Re: [Cs-dev] bug in calculating buffer sizes |
>>>>> "Victor" == Victor Lazzarini |
Date | 2010-05-22 23:05 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] bug in calculating buffer sizes |
This is fixed now in CVS. Victor On 21 May 2010, at 18:42, Victor Lazzarini wrote: > John, > > is it possible that your changes to allow for different in and out > channel numbers have introduced a bug in the calculation of > buffersizes? > In rtpa.c now, the values of > > pabs->inParm.bufSamp_SW and pabs->outParm.bufSamp_SW > > are not matching anymore, raising an error. I ran 'trapped.csd' with - > odac -iadc and checked the values of these and > the input buffer is always 1/2 size of the output. Now because > nchnls=2, I am wondering if the code is taking input nchnls as 1 > by default, when it should take the value of nchnls instead. > > This is the reason for the reported errors with portaudio IO in both > Windows and OSX. Instead of me taking a long time tracing this, I > expect you would know where this is going wrong more promptly. > > Victor > > ------------------------------------------------------------------------------ > > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel ------------------------------------------------------------------------------ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |