Corrected CX channels timeslot numbering

Corrected bug where channels other than C0 had incorrect timeslot number - greater by 1 from the correct value.
This commit is contained in:
ptrkrysik 2015-06-07 18:36:15 +02:00
parent 5d73271301
commit 91c28357fb
1 changed files with 1 additions and 5 deletions

View File

@ -344,14 +344,10 @@ receiver_impl::work(int noutput_items,
break; //do nothing
}
if(input_nr==0)
if(input_nr==input_items.size()-1)
{
d_burst_nr++; //go to next burst
to_consume += TS_BITS * d_OSR + d_burst_nr.get_offset(); //consume samples of the burst up to next guard period
}
if(input_nr==input_items.size()-1)
{
consume_each(to_consume);
}
//and add offset which is introduced by