forked from PAWPAW-Mirror/lib_xua
Handle remaining tail length case.
This commit is contained in:
@@ -564,16 +564,16 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, chanend c_aud
|
|||||||
datalength = p - p0;// - 4;
|
datalength = p - p0;// - 4;
|
||||||
switch (tail)
|
switch (tail)
|
||||||
{
|
{
|
||||||
// case 10:
|
case 10:
|
||||||
// // the tail is 0 which means
|
// the tail is 0 which means
|
||||||
// datalength -= 6;
|
datalength -= 6;
|
||||||
// break;
|
break;
|
||||||
case 11:
|
case 11:
|
||||||
// the tail is 1 which means
|
// the tail is 1 which means
|
||||||
datalength -= 5;
|
datalength -= 5;
|
||||||
break;
|
break;
|
||||||
case 12:
|
case 12:
|
||||||
// the tail is 1 which means
|
// the tail is 2 which means
|
||||||
datalength -= 4;
|
datalength -= 4;
|
||||||
break;
|
break;
|
||||||
case 13:
|
case 13:
|
||||||
@@ -581,11 +581,10 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, chanend c_aud
|
|||||||
datalength -= 3;
|
datalength -= 3;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// Case not handled before
|
// // Case not handled before
|
||||||
printstrln("Tail case not handled (tail, datalength)");
|
// printstrln("Tail case not handled (tail, datalength)");
|
||||||
printintln(tail);
|
// printintln(tail);
|
||||||
printintln(datalength);
|
// printintln(datalength);
|
||||||
// the tail is 2 which means the input was word aligned
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user